summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-18 22:31:41 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-18 22:31:41 +0100
commit23f2f73c63fab846435a698797a0d9041dc63722 (patch)
tree48bbe7b215376b8f2cb21acaffce0b0cd996d059 /src/lib
parent79af506328e80ad84cbe0dddaf2e1a21d4df1fe8 (diff)
Fix incorrect gain of L+R; it's dB not linear.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/upmixer_a.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/upmixer_a.cc b/src/lib/upmixer_a.cc
index a5850cf94..0479f16b2 100644
--- a/src/lib/upmixer_a.cc
+++ b/src/lib/upmixer_a.cc
@@ -71,10 +71,10 @@ UpmixerA::run (shared_ptr<const AudioBuffers> in, int channels)
shared_ptr<AudioBuffers> in_L = in->channel (0);
shared_ptr<AudioBuffers> in_R = in->channel (1);
- /* Mix of L and R */
+ /* Mix of L and R; -6dB down in amplitude (3dB in terms of power) */
shared_ptr<AudioBuffers> in_LR = in_L->clone ();
in_LR->accumulate_frames (in_R.get(), 0, 0, in_R->frames ());
- in_LR->apply_gain (0.5);
+ in_LR->apply_gain (-6);
/* Run filters */
vector<shared_ptr<AudioBuffers> > all_out;