summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-09-22 11:09:34 -0700
committerChris Robinson <[email protected]>2010-09-22 11:09:34 -0700
commit03f56419d0d751ac3ac63bc7e3ee59bf544cb077 (patch)
tree9a97b5499bbcf4e149b3c65ecec205bd3a5c420a
parent3ee9d24c3f7fb94fb98d87c0c360e3365e87c67e (diff)
Duplicate stereo sources by default
The mixer is smart enough now to handle proper volume adjustments depending on the number of output speakers
-rw-r--r--Alc/ALc.c2
-rw-r--r--Alc/panning.c1
-rw-r--r--alsoftrc.sample13
3 files changed, 10 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index f8c13a8a..31bb8019 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2077,6 +2077,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
device->Bs2bLevel = GetConfigValueInt(NULL, "cf_level", 0);
+ device->DuplicateStereo = GetConfigValueBool(NULL, "stereodup", 1);
+
device->HeadDampen = 0.0f;
// Find a playback device to open
diff --git a/Alc/panning.c b/Alc/panning.c
index 87e6b161..5c0f68fd 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -296,7 +296,6 @@ ALvoid aluInitPanning(ALCdevice *Device)
assert(0);
}
- Device->DuplicateStereo = GetConfigValueBool(NULL, "stereodup", 0);
if(GetConfigValueBool(NULL, "scalemix", 0))
{
ALfloat maxout = 1.0f;
diff --git a/alsoftrc.sample b/alsoftrc.sample
index 13f5f759..fe0f2c6a 100644
--- a/alsoftrc.sample
+++ b/alsoftrc.sample
@@ -95,11 +95,14 @@
## stereodup:
# Sets whether to duplicate stereo sounds on the rear and side speakers for 4+
-# channel output. This can make stereo sources noticeably louder than mono or
-# even 4+ channel sources, but provides a "fuller" playback quality. True,
-# yes, on, and non-0 values will duplicate stereo sources. 0 and anything else
-# will cause stereo sounds to only play out the front speakers.
-#stereodup = false
+# channel output. This provides a "fuller" playback quality for 4+ channel
+# output modes, although each individual speaker will have a slight reduction
+# in volume to compensate for the extra output speakers. True, yes, on, and
+# non-0 values will duplicate stereo sources. 0 and anything else will cause
+# stereo sounds to only play out the front speakers. This only has an effect
+# when a suitable output format is used (ie. those that contain side and/or
+# rear speakers).
+#stereodup = true
## scalemix:
# Sets whether to scale the remixed output. When the final mix is written to