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/OpenALStream.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/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/OpenALStream.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index 57d4bcaa17..908573719d 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -17,15 +17,12 @@ #include "aldlist.h" #include "OpenALStream.h" -#include "../../../PluginSpecs/pluginspecs_dsp.h" #if defined HAVE_OPENAL && HAVE_OPENAL #define AUDIO_NUMBUFFERS (4) //#define AUDIO_SERVICE_UPDATE_PERIOD (20) -extern DSPInitialize g_dspInitialize; - bool OpenALStream::Start() { ALDeviceList *pDeviceList = NULL; @@ -97,15 +94,16 @@ void OpenALStream::Update() } } -void OpenALStream::Clear() +void OpenALStream::Clear(bool mute) { - if(!*g_dspInitialize.pEmulatorState) + m_muted = mute; + if(m_muted) { - alSourcePlay(g_uiSource); + alSourceStop(g_uiSource); } else { - alSourceStop(g_uiSource); + alSourcePlay(g_uiSource); } } |
