Use the "decoder" config section instead of "ambisonics"
This commit is contained in:
parent
b0acfa1763
commit
19b130c45d
@ -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();
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user