summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
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);