This commit is contained in:
Volker Fischer 2009-07-30 18:54:50 +00:00
parent 9837af237d
commit 148841d924
2 changed files with 5 additions and 4 deletions

View file

@ -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
{ {