I can't get this wav file to play. It plays fine in Windows but when I deploy it to the droid it doesn't work. I'm compiling it through the Eclipse Environment with the device attached. I'm testing on a Samsung Galaxy III. Mp3 files played just fine.
I save the file from audacity 1.3 beta(Unicode) at 16 bit which is the only format it lets you choose from.
I'm using Visual Studio 2008 Enterprise Edition.
Tier 2 Template version 1.07
Eclipse Indigo
Here is the code.
void app::Begin( void )
{
agk::SetVirtualResolution ( 960, 640 );
agk::LoadSound(1,"CHEER04.wav");
}
// Main loop, called every frame
void app::Loop ( void )
{
if (stopIntesityMeter == 0)
{
if (agk::GetSoundsPlaying(1) == 1)
{}
else{
agk::PlaySound(1);
}
}
else
{
agk::StopSound(1);
}
agk::Sync();
if (agk::GetPointerPressed() ==1)
{
if (stopIntesityMeter == 0)
{
stopIntesityMeter=1;
}
else if (stopIntesityMeter==1)
{
stopIntesityMeter=0;
}
}
}
// Called when the app ends
void app::End ( void )
{
}