From 752b38e4e60a09d0bc977cd2cac0cc3db05ca857 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Fri, 17 Apr 2020 19:43:43 +0200 Subject: [PATCH] changed fader level range from -50..0 to -35..0 since for the Jamulus case the smaller range is better suited for live situations as we have in our jam sessions --- ChangeLog | 1 + src/audiomixerboard.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6148a671..2a7dc090 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ * the ping times in the server list are now more stable +TODO we need a switch to enable OPUS64 packets (otherwise it is not possible to use very small sound card buffers with the normal OPUS 128 samples frame size) TODO offer the Jamulus ASIO settingspanel in case of an ASIO ERROR to fix, e.g., incorrect sample rate (https://sourceforge.net/p/llcon/discussion/533517/thread/777663cf94/#035f) diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index e699874a..a52858f6 100755 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -508,14 +508,14 @@ double CChannelFader::CalcFaderGain ( const int value ) // and normalize so that maximum gain is 1 const double dInValueRange0_1 = static_cast ( value ) / AUD_MIX_FADER_MAX; - // map range from 0..1 to range -50..0 dB and calculate linear gain + // map range from 0..1 to range -35..0 dB and calculate linear gain if ( value == 0 ) { return 0; // -infinity } else { - return pow ( 10, ( dInValueRange0_1 * 50 - 50 ) / 20 ); + return pow ( 10, ( dInValueRange0_1 * 35 - 35 ) / 20 ); } }