From 6638ed20a6e62690a306e0b972bcba23677274d3 Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Mon, 1 Sep 2008 08:50:16 +0000 Subject: [PATCH] Woops, my fault git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@420 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp index 3620f1cbc0..837aff9131 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp @@ -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); } }