diff options
author | Jesse Chappell <jesse@essej.net> | 2007-01-03 20:49:03 +0000 |
---|---|---|
committer | Jesse Chappell <jesse@essej.net> | 2007-01-03 20:49:03 +0000 |
commit | 239a5db49701e977db96854cdcef96646b4d8c4f (patch) | |
tree | b669fa074f81966f4bc3d36276d2436d345ba98e /libs/ardour/route.cc | |
parent | ebbc8b3b6a6d77f705698aff36455c61ee07bb66 (diff) |
* added max peak hold state to IO so that the true held peaks can be displayed
in the numeric field in the gui.
* returned meter falloff to proper slower speeds
git-svn-id: svn://localhost/ardour2/trunk@1265 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index f32757c169..4e82e89b3e 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -845,7 +845,10 @@ Route::add_redirect (boost::shared_ptr<Redirect> redirect, void *src, uint32_t* _peak_power.push_back(0); } while (_visible_peak_power.size() < potential_max_streams) { - _visible_peak_power.push_back(0); + _visible_peak_power.push_back(-INFINITY); + } + while (_max_peak_power.size() < potential_max_streams) { + _max_peak_power.push_back(-INFINITY); } _redirects.push_back (redirect); @@ -903,7 +906,10 @@ Route::add_redirects (const RedirectList& others, void *src, uint32_t* err_strea _peak_power.push_back(0); } while (_visible_peak_power.size() < potential_max_streams) { - _visible_peak_power.push_back(0); + _visible_peak_power.push_back(-INFINITY); + } + while (_max_peak_power.size() < potential_max_streams) { + _max_peak_power.push_back(-INFINITY); } _redirects.push_back (*i); |