aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-21 16:40:23 -0700
committerChris Robinson <[email protected]>2017-03-21 16:40:23 -0700
commitb062d50bf1fcf86814b8ffdba56b8a929dfe350d (patch)
treeffc804160dcb28db6e639c72ea8f3a5771945df6 /Alc
parentcdfe0d8f5af871258f1f58493e9659148659cacb (diff)
Fix setting Ambi formats for loopback devices
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
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;
}