aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-21 02:59:30 -0800
committerChris Robinson <[email protected]>2009-12-21 02:59:30 -0800
commitddfad996a92bc681ede2607315981754107b67eb (patch)
treebe1d7a3083a7ba879394643e2c398bd09a0db9aa /Alc/ALc.c
parentd786f990940456eeb74bbe235756179a48912adf (diff)
Don't render mono as stereo
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 426d39f8..13acaa3a 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1547,7 +1547,8 @@ void SetDefaultChannelOrder(ALCdevice *device)
{
switch(aluChannelsFromFormat(device->Format))
{
- case 1: /* Mono is rendered as stereo; fall-through... */
+ case 1: device->DevChannels[0] = FRONT_CENTER; break;
+
case 2: device->DevChannels[0] = FRONT_LEFT;
device->DevChannels[1] = FRONT_RIGHT; break;
@@ -1586,7 +1587,8 @@ void SetDefaultWFXChannelOrder(ALCdevice *device)
{
switch(aluChannelsFromFormat(device->Format))
{
- case 1: /* Mono is rendered as stereo; fall-through... */
+ case 1: device->DevChannels[0] = FRONT_CENTER; break;
+
case 2: device->DevChannels[0] = FRONT_LEFT;
device->DevChannels[1] = FRONT_RIGHT; break;