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:
@@ -225,8 +225,10 @@ PeakView::Pulse()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (!fPeakLocked) {
|
if (!fPeakLocked) {
|
||||||
|
fLastMaxL = 0.90 * fLastMaxL;
|
||||||
if (fCurrentMaxL > fLastMaxL)
|
if (fCurrentMaxL > fLastMaxL)
|
||||||
fLastMaxL = fCurrentMaxL;
|
fLastMaxL = fCurrentMaxL;
|
||||||
|
fLastMaxR = 0.90 * fLastMaxR;
|
||||||
if (fCurrentMaxR > fLastMaxR)
|
if (fCurrentMaxR > fLastMaxR)
|
||||||
fLastMaxR = fCurrentMaxR;
|
fLastMaxR = fCurrentMaxR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user