mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
Fixed stoping on linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@687 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2c8f1c5aa6
commit
1d8cd86b43
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,7 @@ namespace AOSound
|
||||||
//dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
//dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
||||||
|
|
||||||
while (!threadData)
|
while (!threadData)
|
||||||
{
|
{
|
||||||
// No blocking inside the csection
|
// No blocking inside the csection
|
||||||
//dsBuffer->GetCurrentPosition((DWORD*)¤tPos, 0);
|
//dsBuffer->GetCurrentPosition((DWORD*)¤tPos, 0);
|
||||||
uint_32 numBytesToRender = 256;
|
uint_32 numBytesToRender = 256;
|
||||||
|
@ -122,6 +122,7 @@ namespace AOSound
|
||||||
}
|
}
|
||||||
void AOSound_StopSound()
|
void AOSound_StopSound()
|
||||||
{
|
{
|
||||||
|
threadData = 1;
|
||||||
ao_close(device);
|
ao_close(device);
|
||||||
ao_shutdown();
|
ao_shutdown();
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue