Fix setting Ambi formats for loopback devices

This commit is contained in:
Chris Robinson 2017-03-21 16:40:23 -07:00
parent cdfe0d8f5a
commit b062d50bf1

View File

@ -1904,7 +1904,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(schans == ALC_BFORMAT3D_SOFT)
{
device->FmtChans = DevFmtAmbi1 + aorder;
device->FmtChans = DevFmtAmbi1 + (aorder-1);
device->AmbiLayout = alayout;
device->AmbiScale = ascale;
}