IO objects with no inputs have fixed, defined peak input power (-inf)
git-svn-id: svn://localhost/ardour2/trunk@1114 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
568bbb96ef
commit
58f3d97b90
@ -188,7 +188,9 @@ class IO : public PBD::StatefulDestructible
|
||||
/* Peak metering */
|
||||
|
||||
float peak_input_power (uint32_t n) {
|
||||
if (n < std::max (_ninputs, _noutputs)) {
|
||||
if (_ninputs == 0) {
|
||||
return minus_infinity();
|
||||
} else if (n < std::max (_ninputs, _noutputs)) {
|
||||
return _visible_peak_power[n];
|
||||
} else {
|
||||
return minus_infinity();
|
||||
|
Loading…
Reference in New Issue
Block a user