aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/alc.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 923e3438..9305bf3d 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1145,7 +1145,13 @@ void alc_initconfig(void)
}
Voice::InitMixer(ConfigValueStr(nullptr, nullptr, "resampler"));
- if(auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "decode-filter"))
+ auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "decode-filter");
+ if(!uhjfiltopt)
+ {
+ if((uhjfiltopt = ConfigValueStr(nullptr, "uhj", "filter")))
+ WARN("uhj/filter is deprecated, please use uhj/decode-filter\n");
+ }
+ if(uhjfiltopt)
{
if(al::strcasecmp(uhjfiltopt->c_str(), "fir256") == 0)
UhjDecodeQuality = UhjQualityType::FIR256;
@@ -1156,7 +1162,7 @@ void alc_initconfig(void)
else
WARN("Unsupported uhj/decode-filter: %s\n", uhjfiltopt->c_str());
}
- if(auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "encode-filter"))
+ if((uhjfiltopt = ConfigValueStr(nullptr, "uhj", "encode-filter")))
{
if(al::strcasecmp(uhjfiltopt->c_str(), "fir256") == 0)
UhjEncodeQuality = UhjQualityType::FIR256;