Use the "decoder" config section instead of "ambisonics"

This commit is contained in:
Chris Robinson 2016-03-25 13:55:23 -07:00
parent b0acfa1763
commit 19b130c45d
2 changed files with 2 additions and 2 deletions

View File

@ -2119,7 +2119,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
if(!device->Hrtf && !device->Uhj_Encoder &&
GetConfigValueBool(al_string_get_cstr(device->DeviceName), "ambisonics", "hq-mode", 1))
GetConfigValueBool(al_string_get_cstr(device->DeviceName), "decoder", "hq-mode", 1))
{
if(!device->AmbiDecoder)
device->AmbiDecoder = bformatdec_alloc();

View File

@ -607,7 +607,7 @@ ALvoid aluInitPanning(ALCdevice *device)
layout = GetChannelLayoutName(device->FmtChans);
if(!layout) goto ambi_fail;
if(!ConfigValueStr(al_string_get_cstr(device->DeviceName), "ambisonics", layout, &fname))
if(!ConfigValueStr(al_string_get_cstr(device->DeviceName), "decoder", layout, &fname))
goto ambi_fail;
if(!ambdec_load(&conf, fname))