projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568bbb9
)
IO objects with no inputs have fixed, defined peak input power (-inf)
author
Paul Davis
<paul@linuxaudiosystems.com>
Sun, 12 Nov 2006 00:47:50 +0000
(
00:47
+0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Sun, 12 Nov 2006 00:47:50 +0000
(
00:47
+0000)
git-svn-id: svn://localhost/ardour2/trunk@1114
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/ardour/io.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/io.h
b/libs/ardour/ardour/io.h
index 3090e213105bd6ce14e2de59f153108182fb80fd..eb332398da5e41d1ebe68cf2429c3d39e1fa920b 100644
(file)
--- a/
libs/ardour/ardour/io.h
+++ b/
libs/ardour/ardour/io.h
@@
-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();