dynamic playback & capture buffer resizing (though transport is stopped first)
[ardour.git] / libs / ardour / ardour / chan_count.h
index 3dc6423607ce625a4e07fa7c7831e1f6e5eb0b5e..b24ff2336c42a44c4c4b09ba1e4d5c9aedd046f4 100644 (file)
@@ -114,6 +114,13 @@ public:
                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) {