summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-09-25 14:23:04 +0000
committernakeee <nakeee@gmail.com>2008-09-25 14:23:04 +0000
commit1d8cd86b43936628b3d79c7fa591433faee346eb (patch)
tree6202927547ce6e00a6d448d31d1716f385496986 /Source
parent2c8f1c5aa6dc7151390d2be5ff4237e6ab323ad3 (diff)
Fixed stoping on linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@687 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp
index 837aff9131..9a1e7d4a59 100644
--- a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp
+++ b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp
@@ -72,7 +72,7 @@ namespace AOSound
//dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
while (!threadData)
- {
+ {
// No blocking inside the csection
//dsBuffer->GetCurrentPosition((DWORD*)&currentPos, 0);
uint_32 numBytesToRender = 256;
@@ -122,6 +122,7 @@ namespace AOSound
}
void AOSound_StopSound()
{
+ threadData = 1;
ao_close(device);
ao_shutdown();
free(buffer);