diff options
author | Chris Robinson <[email protected]> | 2016-03-26 21:02:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-26 21:02:10 -0700 |
commit | 6aaa11df300f6a9582dc6815407e59902ae6674b (patch) | |
tree | 7512c8e882e596cbf4db7cf3dfff4cf33646ef9a /Alc | |
parent | ad7ad48bd126191e4936d386e55945832b9574d5 (diff) |
Use the same option for decoder configs
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/panning.c | 6 |
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); |