summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-10-16 11:32:38 +0200
committerGitHub <noreply@github.com>2021-10-16 11:32:38 +0200
commit8195d0bda1acfb751bfd0ba4d4c34eec9fce4b81 (patch)
treeaf6e7ef72030841b01d6723ba83c5d52887a2e64 /Source/Core/AudioCommon/OpenALStream.cpp
parent9a6f0bd9b2df9347dbdd4072217516fcf1a52297 (diff)
parent8ea6bef98f535301d23aa1c81d4080c208527705 (diff)
Merge pull request #10144 from malleoz/dsp-onion
Port Main.DSP to MainSettings
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index 3e56fe8e08..45d1aa23c8 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -12,7 +12,7 @@
#include "Common/Logging/Log.h"
#include "Common/MsgHandler.h"
#include "Common/Thread.h"
-#include "Core/ConfigManager.h"
+#include "Core/Config/MainSettings.h"
static HMODULE s_openal_dll = nullptr;
@@ -212,7 +212,7 @@ void OpenALStream::SoundLoop()
bool float32_capable = palIsExtensionPresent("AL_EXT_float32") != 0;
bool surround_capable = palIsExtensionPresent("AL_EXT_MCFORMATS") || IsCreativeXFi();
- bool use_surround = SConfig::GetInstance().ShouldUseDPL2Decoder() && surround_capable;
+ bool use_surround = Config::ShouldUseDPL2Decoder() && surround_capable;
// As there is no extension to check for 32-bit fixed point support
// and we know that only a X-Fi with hardware OpenAL supports it,
@@ -223,9 +223,9 @@ void OpenALStream::SoundLoop()
u32 frames_per_buffer;
// Can't have zero samples per buffer
- if (SConfig::GetInstance().iLatency > 0)
+ if (Config::Get(Config::MAIN_AUDIO_LATENCY) > 0)
{
- frames_per_buffer = frequency / 1000 * SConfig::GetInstance().iLatency / OAL_BUFFERS;
+ frames_per_buffer = frequency / 1000 * Config::Get(Config::MAIN_AUDIO_LATENCY) / OAL_BUFFERS;
}
else
{