Duplicate stereo sources by default

The mixer is smart enough now to handle proper volume adjustments depending on
the number of output speakers
This commit is contained in:
Chris Robinson
2010-09-22 11:09:34 -07:00
parent 3ee9d24c3f
commit 03f56419d0
3 changed files with 10 additions and 6 deletions
+2
View File
@@ -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
-1
View File
@@ -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;
+8 -5
View File
@@ -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