From 23f2f73c63fab846435a698797a0d9041dc63722 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 18 Sep 2015 22:31:41 +0100 Subject: Fix incorrect gain of L+R; it's dB not linear. --- src/lib/upmixer_a.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') 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 in, int channels) shared_ptr in_L = in->channel (0); shared_ptr 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 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 > all_out; -- cgit v1.2.3