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

This commit is contained in:
Volker Fischer 2020-04-17 19:43:43 +02:00
parent 24ffb1e4da
commit 752b38e4e6
2 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@
* the ping times in the server list are now more stable * 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) 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)

View file

@ -508,14 +508,14 @@ double CChannelFader::CalcFaderGain ( const int value )
// and normalize so that maximum gain is 1 // and normalize so that maximum gain is 1
const double dInValueRange0_1 = static_cast<double> ( value ) / AUD_MIX_FADER_MAX; const double dInValueRange0_1 = static_cast<double> ( 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 ) if ( value == 0 )
{ {
return 0; // -infinity return 0; // -infinity
} }
else else
{ {
return pow ( 10, ( dInValueRange0_1 * 50 - 50 ) / 20 ); return pow ( 10, ( dInValueRange0_1 * 35 - 35 ) / 20 );
} }
} }