diff options
Diffstat (limited to 'Source/Core/AudioCommon/Src/AOSoundStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/AOSoundStream.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/Core/AudioCommon/Src/AOSoundStream.cpp b/Source/Core/AudioCommon/Src/AOSoundStream.cpp index fdc507f5ee..c3cae83f74 100644 --- a/Source/Core/AudioCommon/Src/AOSoundStream.cpp +++ b/Source/Core/AudioCommon/Src/AOSoundStream.cpp @@ -46,20 +46,15 @@ void AOSound::SoundLoop() while (!threadData) { soundCriticalSection.Enter(); - m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2); ao_play(device, (char*)realtimeBuffer, numBytesToRender); - soundCriticalSection.Leave(); if (! threadData) soundSyncEvent.Wait(); } - ao_close(device); - device = NULL; - ao_shutdown(); - + device = NULL; } void *soundThread(void *args) @@ -93,7 +88,10 @@ void AOSound::Stop() delete thread; thread = NULL; soundSyncEvent.Shutdown(); - } +AOSound::~AOSound() { + // FIXME: crashes dolphin + // ao_shutdown(); +} #endif |
