aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-08-09 05:38:07 -0700
committerChris Robinson <[email protected]>2012-08-09 05:38:07 -0700
commitd6fd52a0e544dee1e8ae2a1ec908ec689e9f2ae1 (patch)
treefad4d5ac9270d20493dcdada98ca34d0b6d7dbae /Alc/ALc.c
parent0dde7dd88a24a59a484ec36bc26bec19e0ee7d0a (diff)
Add an option for wide stereo sources
Replaces the old stereodup option
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 54eb5ecf..7b757a87 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1562,6 +1562,10 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
TRACE("BS2B disabled\n");
}
+ device->Flags &= ~DEVICE_WIDE_STEREO;
+ if(device->Type != Loopback && !device->Hrtf && GetConfigValueBool(NULL, "wide-stereo", AL_FALSE))
+ device->Flags |= DEVICE_WIDE_STEREO;
+
oldMode = SetMixerFPUMode();
LockDevice(device);
context = device->ContextList;