Make the peak display automatically go back down for the max peaks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26698 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-07-31 13:33:37 +00:00
parent f9ae429701
commit 97d52f8e2a
1 changed files with 2 additions and 0 deletions

View File

@ -225,8 +225,10 @@ PeakView::Pulse()
return;
if (!fPeakLocked) {
fLastMaxL = 0.90 * fLastMaxL;
if (fCurrentMaxL > fLastMaxL)
fLastMaxL = fCurrentMaxL;
fLastMaxR = 0.90 * fLastMaxR;
if (fCurrentMaxR > fLastMaxR)
fLastMaxR = fCurrentMaxR;
}