fix
This commit is contained in:
parent
9837af237d
commit
148841d924
2 changed files with 5 additions and 4 deletions
|
@ -64,13 +64,14 @@ void CStereoSignalLevelMeter::Update ( CVector<short>& vecsAudio )
|
||||||
dCurLevelR = UpdateCurLevel ( dCurLevelR, sMaxR );
|
dCurLevelR = UpdateCurLevel ( dCurLevelR, sMaxR );
|
||||||
}
|
}
|
||||||
|
|
||||||
double CStereoSignalLevelMeter::UpdateCurLevel ( double dCurLevel, const short& sMax )
|
double CStereoSignalLevelMeter::UpdateCurLevel ( double dCurLevel,
|
||||||
|
const short& sMax )
|
||||||
{
|
{
|
||||||
// decrease max with time
|
// decrease max with time
|
||||||
if ( dCurLevel >= METER_FLY_BACK )
|
if ( dCurLevel >= METER_FLY_BACK )
|
||||||
{
|
{
|
||||||
// TODO calculate factor from sample rate
|
// TODO calculate factor from sample rate
|
||||||
dCurLevel *= 0.99;
|
dCurLevel *= 0.95;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue