aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-29 04:44:53 -0700
committerChris Robinson <[email protected]>2012-04-29 04:44:53 -0700
commit8d9838012d5d073cf0bcdc917634b69e77fbaf71 (patch)
tree8263ad2a84e22994d91e17731e93eca3f588ce12 /Alc
parent57d36ec5826389984cbd5998ab487d8655adabdb (diff)
Remove the stereodup option
There's better ways to do it now with "wide" sound sources.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c17
-rw-r--r--Alc/ALu.c17
2 files changed, 1 insertions, 33 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e91108a4..c57d015d 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1562,23 +1562,6 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
TRACE("BS2B disabled\n");
}
- device->Flags &= ~DEVICE_DUPLICATE_STEREO;
- switch(device->FmtChans)
- {
- case DevFmtMono:
- case DevFmtStereo:
- break;
- case DevFmtQuad:
- case DevFmtX51:
- case DevFmtX51Side:
- case DevFmtX61:
- case DevFmtX71:
- if(GetConfigValueBool(NULL, "stereodup", AL_TRUE))
- device->Flags |= DEVICE_DUPLICATE_STEREO;
- break;
- }
- TRACE("Stereo duplication %s\n", (device->Flags&DEVICE_DUPLICATE_STEREO)?"enabled":"disabled");
-
oldMode = SetMixerFPUMode();
LockDevice(device);
context = device->ContextList;
diff --git a/Alc/ALu.c b/Alc/ALu.c
index f2d80275..915c06e9 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -200,23 +200,8 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
chans = MonoMap;
num_channels = 1;
break;
- case FmtStereo:
- if(!DirectChannels && (Device->Flags&DEVICE_DUPLICATE_STEREO))
- {
- DryGain *= aluSqrt(2.0f/4.0f);
- for(c = 0;c < 2;c++)
- {
- pos = aluCart2LUTpos(aluSin(RearMap[c].angle),
- aluCos(RearMap[c].angle));
- ChannelGain = Device->PanningLUT[pos];
- for(i = 0;i < (ALint)Device->NumChan;i++)
- {
- enum Channel chan = Device->Speaker2Chan[i];
- SrcMatrix[c][chan] += DryGain * ChannelGain[chan];
- }
- }
- }
+ case FmtStereo:
chans = StereoMap;
num_channels = 2;
break;