Woops, my fault

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@420 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1 2008-09-01 08:50:16 +00:00
parent 454cee4d1e
commit 6638ed20a6
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ namespace AOSound
return(false);*/
//if(soundData[0] != 0)
if(!device)
if(device)
ao_play(device, soundData, numSoundBytes);
return true;
@ -122,8 +122,8 @@ namespace AOSound
}
void AOSound_StopSound()
{
free(buffer);
ao_close(device);
ao_shutdown();
free(buffer);
}
}