summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/Src/AOSoundStream.cpp
diff options
context:
space:
mode:
authorXTra.KrazzY <XTra.KrazzY@gmail.com>2009-11-07 20:01:39 +0000
committerXTra.KrazzY <XTra.KrazzY@gmail.com>2009-11-07 20:01:39 +0000
commita0129e51a3fead84c91f5bd302d627ac84e36feb (patch)
tree107111240fa8ce392da2b944bc96aca28688b657 /Source/Core/AudioCommon/Src/AOSoundStream.cpp
parentebaad032eb7a1f2598fa8b87c6adf2eb996ef4a8 (diff)
LUAInterface should have all its functionality now (excluding input/controller management). Now we need a GUI to see how it works. Added new DSP function: ClearAudioBuffer, which clears the audio buffer for pausing. Currently it doesn't work with DSound.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4507 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/AOSoundStream.cpp')
-rw-r--r--Source/Core/AudioCommon/Src/AOSoundStream.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/Src/AOSoundStream.cpp b/Source/Core/AudioCommon/Src/AOSoundStream.cpp
index 646d011022..137864a832 100644
--- a/Source/Core/AudioCommon/Src/AOSoundStream.cpp
+++ b/Source/Core/AudioCommon/Src/AOSoundStream.cpp
@@ -81,7 +81,14 @@ void AOSound::Update()
{
soundSyncEvent.Set();
}
-
+
+void AOSound::Clear()
+{
+ memset(realtimeBuffer, 0, sizeof(realtimeBuffer));
+
+ Update();
+}
+
void AOSound::Stop()
{
soundCriticalSection.Enter();