Rename the UHJ filter config option

master
Chris Robinson 2022-08-09 03:51:33 -07:00
parent 7e5dd41968
commit 63a82feae6
2 changed files with 7 additions and 7 deletions

View File

@ -1145,14 +1145,14 @@ void alc_initconfig(void)
}
Voice::InitMixer(ConfigValueStr(nullptr, nullptr, "resampler"));
if(auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "filter-type"))
if(auto uhjfiltopt = ConfigValueStr(nullptr, "uhj", "filter"))
{
if(al::strcasecmp(uhjfiltopt->c_str(), "fir256") == 0)
UhjQuality = UhjLengthLq;
else if(al::strcasecmp(uhjfiltopt->c_str(), "fir512") == 0)
UhjQuality = UhjLengthHq;
else
WARN("Unsupported uhj/filter-type: %s\n", uhjfiltopt->c_str());
WARN("Unsupported uhj/filter: %s\n", uhjfiltopt->c_str());
}
auto traperr = al::getenv("ALSOFT_TRAP_ERROR");

View File

@ -349,16 +349,16 @@
#surround3d71 =
##
## UHJ stuff
## UHJ and Super Stereo stuff
##
[uhj]
## filter-type: (global)
## filter: (global)
# Specifies the all-pass filter type for UHJ encoding, decoding, and Super
# Stereo processing. The default is 'fir256', which utilizes a 256-point FIR
# filter. 'fir512' is a 512-point FIR filter, providing higher quality at the
# cost of higher CPU use.
#filter-type = fir256
# filter. 'fir512' utilizes a 512-point FIR filter, providing higher quality
# at the cost of higher CPU use.
#filter = fir256
##
## Reverb effect stuff (includes EAX reverb)