mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user