go back to original fader range dynamic (since issue was caused by server gain calculation)
This commit is contained in:
parent
45bd6ca52b
commit
e55872ffeb
2 changed files with 2 additions and 5 deletions
|
@ -21,9 +21,6 @@
|
||||||
- bug fix: server gain calculations were incorrect
|
- bug fix: server gain calculations were incorrect
|
||||||
|
|
||||||
|
|
||||||
TODO go back to original fader range dynamic (since issue was caused by server gain calculation)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
3.5.4 (2020-05-24)
|
3.5.4 (2020-05-24)
|
||||||
|
|
|
@ -588,14 +588,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 -25..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 * 25 - 25 ) / 20 );
|
return pow ( 10, ( dInValueRange0_1 * 35 - 35 ) / 20 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue