aboutsummaryrefslogtreecommitdiffstats
path: root/alc/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2021-04-24 15:52:53 -0700
committerChris Robinson <chris.kcat@gmail.com>2021-04-24 15:52:53 -0700
commit9b65ca4556611c0b5b582a57d0c7714614badcc0 (patch)
tree8c57cc375b944ed7e9c1c9f7f9da7fff2f1d2fb8 /alc/voice.cpp
parent440ce71dcedb39e827660d0925b6cc2046c6d0f0 (diff)
More include cleanup
Diffstat (limited to 'alc/voice.cpp')
-rw-r--r--alc/voice.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp
index 79c47588..6368d5c4 100644
--- a/alc/voice.cpp
+++ b/alc/voice.cpp
@@ -36,7 +36,6 @@
#include <vector>
#include "albyte.h"
-#include "alconfig.h"
#include "alcontext.h"
#include "alnumeric.h"
#include "aloptional.h"
@@ -131,9 +130,9 @@ inline HrtfMixerBlendFunc SelectHrtfBlendMixer()
} // namespace
-void aluInitMixer()
+void aluInitMixer(al::optional<std::string> resampler)
{
- if(auto resopt = ConfigValueStr(nullptr, nullptr, "resampler"))
+ if(resampler)
{
struct ResamplerEntry {
const char name[16];
@@ -150,7 +149,7 @@ void aluInitMixer()
{ "fast_bsinc24", Resampler::FastBSinc24 },
};
- const char *str{resopt->c_str()};
+ const char *str{resampler->c_str()};
if(al::strcasecmp(str, "bsinc") == 0)
{
WARN("Resampler option \"%s\" is deprecated, using bsinc12\n", str);