diff options
author | Chris Robinson <[email protected]> | 2009-12-21 02:59:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-21 02:59:30 -0800 |
commit | ddfad996a92bc681ede2607315981754107b67eb (patch) | |
tree | be1d7a3083a7ba879394643e2c398bd09a0db9aa /Alc/ALc.c | |
parent | d786f990940456eeb74bbe235756179a48912adf (diff) |
Don't render mono as stereo
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |