I'm studying AppGameKit at the moment and have using it for a good while to create little apps and games
These games so far have required no sounds so when I went to create a sound orientated game I hit into the problem of not being able to actually play any sound. After many hours of pondering I thought it might be something to do with something in my code that I am not able to see, so I created a simple sound app:- You hit the key it plays the sound
But still no sound
Heres my code for my tester app:-
// Includes, namespace and prototypes
#include "template.h"
using namespace AGK;
app App;
int bpressed = 0;
// Begin app, called once at the start
void app::Begin( void )
{
agk::LoadSound(1,"bass.wav");
}
// Main loop, called every frame
void app::Loop ( void )
{
if (agk::GetRawKeyState( 66 ) )
{
if (bpressed = 0)
{
bpressed = 1;
agk::PlaySound(1,100);
}
}
else
{
bpressed=0;
}
agk::Print(agk::GetRawLastKey( ));
agk::Sync();
}
// Called when the app ends
void app::End ( void )
{
}
And just as it may help you help me i'm using visual studio c++ 2010.
Thank you.
life is short but so am i