aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-10 01:04:28 -0800
committerChris Robinson <[email protected]>2016-03-10 01:04:28 -0800
commiteffb9d1e35ab3679daa6314ffecfc4d71dc4cdf7 (patch)
tree7f6937dcc519b6f6fdc139a5a4ddf98286db091e /Alc/ALc.c
parenta45715751640992e8caeac8c36b5ecb23ba3c190 (diff)
Keep track of the real output's channel names
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c108
1 files changed, 54 insertions, 54 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 2d3af9d5..6074df4a 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1433,63 +1433,63 @@ void SetDefaultWFXChannelOrder(ALCdevice *device)
ALuint i;
for(i = 0;i < MAX_OUTPUT_CHANNELS;i++)
- device->Dry.ChannelName[i] = InvalidChannel;
+ device->RealOut.ChannelName[i] = InvalidChannel;
switch(device->FmtChans)
{
case DevFmtMono:
- device->Dry.ChannelName[0] = FrontCenter;
+ device->RealOut.ChannelName[0] = FrontCenter;
break;
case DevFmtStereo:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
break;
case DevFmtQuad:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = BackLeft;
- device->Dry.ChannelName[3] = BackRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = BackLeft;
+ device->RealOut.ChannelName[3] = BackRight;
break;
case DevFmtX51:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = FrontCenter;
- device->Dry.ChannelName[3] = LFE;
- device->Dry.ChannelName[4] = SideLeft;
- device->Dry.ChannelName[5] = SideRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = FrontCenter;
+ device->RealOut.ChannelName[3] = LFE;
+ device->RealOut.ChannelName[4] = SideLeft;
+ device->RealOut.ChannelName[5] = SideRight;
break;
case DevFmtX51Rear:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = FrontCenter;
- device->Dry.ChannelName[3] = LFE;
- device->Dry.ChannelName[4] = BackLeft;
- device->Dry.ChannelName[5] = BackRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = FrontCenter;
+ device->RealOut.ChannelName[3] = LFE;
+ device->RealOut.ChannelName[4] = BackLeft;
+ device->RealOut.ChannelName[5] = BackRight;
break;
case DevFmtX61:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = FrontCenter;
- device->Dry.ChannelName[3] = LFE;
- device->Dry.ChannelName[4] = BackCenter;
- device->Dry.ChannelName[5] = SideLeft;
- device->Dry.ChannelName[6] = SideRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = FrontCenter;
+ device->RealOut.ChannelName[3] = LFE;
+ device->RealOut.ChannelName[4] = BackCenter;
+ device->RealOut.ChannelName[5] = SideLeft;
+ device->RealOut.ChannelName[6] = SideRight;
break;
case DevFmtX71:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = FrontCenter;
- device->Dry.ChannelName[3] = LFE;
- device->Dry.ChannelName[4] = BackLeft;
- device->Dry.ChannelName[5] = BackRight;
- device->Dry.ChannelName[6] = SideLeft;
- device->Dry.ChannelName[7] = SideRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = FrontCenter;
+ device->RealOut.ChannelName[3] = LFE;
+ device->RealOut.ChannelName[4] = BackLeft;
+ device->RealOut.ChannelName[5] = BackRight;
+ device->RealOut.ChannelName[6] = SideLeft;
+ device->RealOut.ChannelName[7] = SideRight;
break;
case DevFmtBFormat3D:
- device->Dry.ChannelName[0] = BFormatW;
- device->Dry.ChannelName[1] = BFormatX;
- device->Dry.ChannelName[2] = BFormatY;
- device->Dry.ChannelName[3] = BFormatZ;
+ device->RealOut.ChannelName[0] = BFormatW;
+ device->RealOut.ChannelName[1] = BFormatX;
+ device->RealOut.ChannelName[2] = BFormatY;
+ device->RealOut.ChannelName[3] = BFormatZ;
break;
}
}
@@ -1503,27 +1503,27 @@ void SetDefaultChannelOrder(ALCdevice *device)
ALuint i;
for(i = 0;i < MAX_OUTPUT_CHANNELS;i++)
- device->Dry.ChannelName[i] = InvalidChannel;
+ device->RealOut.ChannelName[i] = InvalidChannel;
switch(device->FmtChans)
{
case DevFmtX51Rear:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = BackLeft;
- device->Dry.ChannelName[3] = BackRight;
- device->Dry.ChannelName[4] = FrontCenter;
- device->Dry.ChannelName[5] = LFE;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = BackLeft;
+ device->RealOut.ChannelName[3] = BackRight;
+ device->RealOut.ChannelName[4] = FrontCenter;
+ device->RealOut.ChannelName[5] = LFE;
return;
case DevFmtX71:
- device->Dry.ChannelName[0] = FrontLeft;
- device->Dry.ChannelName[1] = FrontRight;
- device->Dry.ChannelName[2] = BackLeft;
- device->Dry.ChannelName[3] = BackRight;
- device->Dry.ChannelName[4] = FrontCenter;
- device->Dry.ChannelName[5] = LFE;
- device->Dry.ChannelName[6] = SideLeft;
- device->Dry.ChannelName[7] = SideRight;
+ device->RealOut.ChannelName[0] = FrontLeft;
+ device->RealOut.ChannelName[1] = FrontRight;
+ device->RealOut.ChannelName[2] = BackLeft;
+ device->RealOut.ChannelName[3] = BackRight;
+ device->RealOut.ChannelName[4] = FrontCenter;
+ device->RealOut.ChannelName[5] = LFE;
+ device->RealOut.ChannelName[6] = SideLeft;
+ device->RealOut.ChannelName[7] = SideRight;
return;
/* Same as WFX order */