diff options
| author | ayuanx <ayuanx@gmail.com> | 2009-12-13 11:51:29 +0000 |
|---|---|---|
| committer | ayuanx <ayuanx@gmail.com> | 2009-12-13 11:51:29 +0000 |
| commit | afef9fb5f03e202d398e22054561a6e3385f9e17 (patch) | |
| tree | b66ee0cf3de92069262f5420b1d6adbc63a810e0 /Source/Core/AudioCommon/Src/AOSoundStream.cpp | |
| parent | 4fe3e467254ba7e6d2c8054682e9fcc195ce2c78 (diff) | |
Code cleanup, removed extern declaration in sound streams
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4688 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/AOSoundStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/AOSoundStream.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Source/Core/AudioCommon/Src/AOSoundStream.cpp b/Source/Core/AudioCommon/Src/AOSoundStream.cpp index e09a4cff29..632bc450c8 100644 --- a/Source/Core/AudioCommon/Src/AOSoundStream.cpp +++ b/Source/Core/AudioCommon/Src/AOSoundStream.cpp @@ -19,12 +19,9 @@ #include "AOSoundStream.h" #include "Mixer.h" -#include "../../../PluginSpecs/pluginspecs_dsp.h" #if defined(HAVE_AO) && HAVE_AO -extern DSPInitialize g_dspInitialize; - void AOSound::SoundLoop() { uint_32 numBytesToRender = 256; @@ -54,8 +51,7 @@ void AOSound::SoundLoop() { soundCriticalSection.Enter(); m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2); - if(!g_muted) - ao_play(device, (char*)realtimeBuffer, numBytesToRender); + ao_play(device, (char*)realtimeBuffer, numBytesToRender); soundCriticalSection.Leave(); if (! threadData) @@ -86,19 +82,6 @@ void AOSound::Update() soundSyncEvent.Set(); } -void AOSound::Clear() -{ - if(!*g_dspInitialize.pEmulatorState) - { - g_muted = false; - } - else - { - g_muted = true; - } - Update(); -} - void AOSound::Stop() { soundCriticalSection.Enter(); |
