diff options
author | David Robillard <d@drobilla.net> | 2007-06-04 00:05:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-04 00:05:33 +0000 |
commit | 70fd14afe809c7ac7d3b5b382c77580d7b8f6085 (patch) | |
tree | b996da4ea8757e58bbef4db13ca70f508a7464c2 /libs/ardour/ardour/chan_count.h | |
parent | 5ee467790081b90b929bbeafda6b6d1f593929b5 (diff) |
Show selected MIDI track in editor mixer.
Minor code cleanups.
git-svn-id: svn://localhost/ardour2/trunk@1949 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/chan_count.h')
-rw-r--r-- | libs/ardour/ardour/chan_count.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/ardour/chan_count.h b/libs/ardour/ardour/chan_count.h index 35052e4aea..a859c37b5a 100644 --- a/libs/ardour/ardour/chan_count.h +++ b/libs/ardour/ardour/chan_count.h @@ -47,11 +47,8 @@ public: // -1 is what to_index does. inlined for speed. this should maybe be changed.. inline size_t n_audio() const { return _counts[DataType::AUDIO-1]; } inline size_t n_midi() const { return _counts[DataType::MIDI-1]; } - - void set(DataType type, size_t count) { _counts[type.to_index()] = count; } - size_t get(DataType type) const { return _counts[type.to_index()]; } - size_t get_total() const + size_t n_total() const { size_t ret = 0; for (size_t i=0; i < DataType::num_types; ++i) @@ -60,6 +57,9 @@ public: return ret; } + void set(DataType type, size_t count) { _counts[type.to_index()] = count; } + size_t get(DataType type) const { return _counts[type.to_index()]; } + bool operator==(const ChanCount& other) const { for (size_t i=0; i < DataType::num_types; ++i) |