mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 22:27:36 +01:00
Fixed meter crash bug.
git-svn-id: svn://localhost/ardour2/branches/midi@1771 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a9e06980c1
commit
cdaec2d09e
1 changed files with 4 additions and 3 deletions
|
|
@ -72,12 +72,13 @@ PeakMeter::setup (const ChanCount& in)
|
|||
while (_peak_power.size() > limit) {
|
||||
_peak_power.pop_back();
|
||||
_visible_peak_power.pop_back();
|
||||
_max_peak_power.push_back(minus_infinity());
|
||||
}
|
||||
|
||||
while (_peak_power.size() < limit) {
|
||||
_peak_power.push_back (0);
|
||||
_visible_peak_power.push_back (minus_infinity());
|
||||
_max_peak_power.push_back (minus_infinity());
|
||||
_peak_power.push_back(0);
|
||||
_visible_peak_power.push_back(minus_infinity());
|
||||
_max_peak_power.push_back(minus_infinity());
|
||||
}
|
||||
|
||||
assert(_peak_power.size() == limit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue