mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Code cleanup, removed extern declaration in sound streams
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4688 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -18,10 +18,8 @@
|
||||
#include <windows.h>
|
||||
#include <cmath>
|
||||
#include <dxerr.h>
|
||||
#include "AudioCommon.h"
|
||||
#include "DSoundStream.h"
|
||||
#include "../../../PluginSpecs/pluginspecs_dsp.h"
|
||||
|
||||
extern DSPInitialize g_dspInitialize;
|
||||
|
||||
bool DSound::CreateBuffer()
|
||||
{
|
||||
@ -169,15 +167,16 @@ void DSound::Update()
|
||||
soundSyncEvent.Set();
|
||||
}
|
||||
|
||||
void DSound::Clear()
|
||||
void DSound::Clear(bool mute)
|
||||
{
|
||||
if(!*g_dspInitialize.pEmulatorState)
|
||||
m_muted = mute;
|
||||
if (m_muted)
|
||||
{
|
||||
dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
||||
dsBuffer->Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
dsBuffer->Stop();
|
||||
dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user