From b062d50bf1fcf86814b8ffdba56b8a929dfe350d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 21 Mar 2017 16:40:23 -0700 Subject: Fix setting Ambi formats for loopback devices --- Alc/ALc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index f830a602..8d241802 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -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; } -- cgit v1.2.3