diff options
author | Robin Gareus <robin@gareus.org> | 2016-03-27 21:33:40 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-03-27 21:33:40 +0200 |
commit | c444105710cc540d3d6a14c9cf710f1e14fdbe26 (patch) | |
tree | 70d7bff0313d9232efbc32ac77eaf09aba00404d /libs/ardour/ardour/chan_count.h | |
parent | 41b1ecaaf0a99698070cbb256cfe0183595f0f71 (diff) |
closing in on pin management.
overall the PluginInsert API is complete.
many implementation details remain.
Diffstat (limited to 'libs/ardour/ardour/chan_count.h')
-rw-r--r-- | libs/ardour/ardour/chan_count.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/chan_count.h b/libs/ardour/ardour/chan_count.h index b613f67a3c..fc76734817 100644 --- a/libs/ardour/ardour/chan_count.h +++ b/libs/ardour/ardour/chan_count.h @@ -120,6 +120,14 @@ public: return ret; } + ChanCount operator*(const unsigned int factor) const { + ChanCount ret; + for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) { + ret.set(*t, get(*t) * factor ); + } + return ret; + } + ChanCount& operator+=(const ChanCount& other) { for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) { _counts[*t] += other._counts[*t]; |