projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dynamic playback & capture buffer resizing (though transport is stopped first)
[ardour.git]
/
libs
/
ardour
/
ardour
/
chan_count.h
diff --git
a/libs/ardour/ardour/chan_count.h
b/libs/ardour/ardour/chan_count.h
index 3dc6423607ce625a4e07fa7c7831e1f6e5eb0b5e..b24ff2336c42a44c4c4b09ba1e4d5c9aedd046f4 100644
(file)
--- a/
libs/ardour/ardour/chan_count.h
+++ b/
libs/ardour/ardour/chan_count.h
@@
-114,6
+114,13
@@
public:
return ret;
}
return ret;
}
+ ChanCount& operator+=(const ChanCount& other) {
+ for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
+ _counts[*t] += other._counts[*t];
+ }
+ return *this;
+ }
+
static ChanCount min(const ChanCount& a, const ChanCount& b) {
ChanCount ret;
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
static ChanCount min(const ChanCount& a, const ChanCount& b) {
ChanCount ret;
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {