diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2023-05-01 01:38:16 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2023-05-01 01:38:16 -0700 |
commit | 0e7d078b01e423e7973cc593046f9716d1ca8c0b (patch) | |
tree | 3229187cc05ed82e212dfb2662ba1c1833fa2677 /alc/alc.cpp | |
parent | 931e261fe0944c1876a95a373996351f3424f399 (diff) |
Avoid assigning to existing optional<string>
Reduces the amount inlining the compiler has to do, though the uhj/filter
config option is no longer recognized (it has been deprecated, amd I don't
think it was in an actual release).
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 504737ec..63654b1a 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1201,13 +1201,7 @@ void alc_initconfig(void) } Voice::InitMixer(ConfigValueStr(nullptr, nullptr, "resampler")); - 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(auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "decode-filter")) { if(al::strcasecmp(uhjfiltopt->c_str(), "fir256") == 0) UhjDecodeQuality = UhjQualityType::FIR256; @@ -1218,7 +1212,7 @@ void alc_initconfig(void) else WARN("Unsupported uhj/decode-filter: %s\n", uhjfiltopt->c_str()); } - if((uhjfiltopt = ConfigValueStr(nullptr, "uhj", "encode-filter"))) + if(auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "encode-filter")) { if(al::strcasecmp(uhjfiltopt->c_str(), "fir256") == 0) UhjEncodeQuality = UhjQualityType::FIR256; |