diff options
author | David Robillard <d@drobilla.net> | 2007-06-20 03:05:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-20 03:05:16 +0000 |
commit | 8ae580427987b4eefc102f3e801c1b76fdc74d48 (patch) | |
tree | 52d9ffe3e964bc96d60dae929c5c3c834bccf107 /libs/ardour/ardour/chan_count.h | |
parent | 996d59663f83200c0716f1ba7bccc486d52bee7e (diff) |
Made plugin input/output counts multi-typed (towards MIDI plugins, instruments, etc).
Cleaning up/genericification of Insert interface.
Fixed meter count for pre-fader metering (was # inputs, not # channels at end of pre-fader redirect list).
Work on redirect list stream handling, better error reporting (towards automatically adding 'adaptors' in the future?).
git-svn-id: svn://localhost/ardour2/trunk@2025 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/chan_count.h')
-rw-r--r-- | libs/ardour/ardour/chan_count.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/chan_count.h b/libs/ardour/ardour/chan_count.h index a859c37b5a..1ed50f7abb 100644 --- a/libs/ardour/ardour/chan_count.h +++ b/libs/ardour/ardour/chan_count.h @@ -47,6 +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]; } + inline void set_audio(size_t a) { _counts[DataType::AUDIO-1] = a; } + inline void set_midi(size_t m) { _counts[DataType::MIDI-1] = m; } size_t n_total() const { |