aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/panning.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index c3145cd7..b8ff3482 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -400,7 +400,7 @@ static bool LoadChannelSetup(ALCdevice *device)
layout = GetChannelLayoutName(device->FmtChans);
if(!layout) return false;
- if(!ConfigValueStr(al_string_get_cstr(device->DeviceName), "layouts", layout, &fname))
+ if(!ConfigValueStr(al_string_get_cstr(device->DeviceName), "decoder", layout, &fname))
return false;
ambdec_init(&conf);
@@ -410,6 +410,10 @@ static bool LoadChannelSetup(ALCdevice *device)
goto fail;
}
+ /* TODO: Perhaps just use the high-frequency matrix, even if both are
+ * present? The recommendation seems to be to use an energy decode (rE,
+ * aka high-frequency) if frequency-dependent processing is not available.
+ */
if(conf.FreqBands != 1)
{
ERR("AmbDec layout file must be single-band (freq_bands = %u)\n", conf.FreqBands);