Allow dual-band decoders for basic rendering

Since the basic renderer does not do frequency-dependent processing, the high-
frequency matrix is used for panning.
This commit is contained in:
Chris Robinson 2016-03-30 02:25:59 -07:00
parent df0d225dbf
commit 2cd73a8d97

View File

@ -410,15 +410,9 @@ 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);
goto fail;
}
ERR("Basic renderer uses the high-frequency matrix as single-band (xover_freq = %.0fhz)\n",
conf.XOverFreq);
if(!MakeSpeakerMap(device, &conf, speakermap))
goto fail;