summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2014-09-09 00:24:49 -0400
committerRachel Bryk <RachelBryk@gmail.com>2014-09-09 00:24:49 -0400
commitf93aa7087cb75e9d7539cac2b47befb5123f6ab8 (patch)
tree0b3d0cbb3cffbca137ae6ef2d50887c6f398bd11 /Source/Core/AudioCommon/OpenALStream.cpp
parent44c4bc134a89514f986ca4fdb1e4fd24a7d1db6c (diff)
Kill Core::g_CoreStartupParameter.
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index 0c38f5c440..bf195dabe7 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -8,6 +8,7 @@
#include "AudioCommon/DPL2Decoder.h"
#include "AudioCommon/OpenALStream.h"
#include "Common/Thread.h"
+#include "Core/ConfigManager.h"
#if defined HAVE_OPENAL && HAVE_OPENAL
@@ -127,7 +128,7 @@ void OpenALStream::SoundLoop()
{
Common::SetCurrentThreadName("Audio thread - openal");
- bool surround_capable = Core::g_CoreStartupParameter.bDPL2Decoder;
+ bool surround_capable = SConfig::GetInstance().m_LocalCoreStartupParameter.bDPL2Decoder;
#if defined(__APPLE__)
bool float32_capable = false;
const ALenum AL_FORMAT_STEREO_FLOAT32 = 0;
@@ -139,7 +140,7 @@ void OpenALStream::SoundLoop()
#endif
u32 ulFrequency = m_mixer->GetSampleRate();
- numBuffers = Core::g_CoreStartupParameter.iLatency + 2; // OpenAL requires a minimum of two buffers
+ numBuffers = SConfig::GetInstance().m_LocalCoreStartupParameter.iLatency + 2; // OpenAL requires a minimum of two buffers
memset(uiBuffers, 0, numBuffers * sizeof(ALuint));
uiSource = 0;