diff options
author | David Robillard <d@drobilla.net> | 2011-10-21 04:51:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-21 04:51:04 +0000 |
commit | 96dcffcb222bc920cef9bfbaffb0548138352d65 (patch) | |
tree | ef1ee41a55af73d4197910a5788b299d529d7479 /libs/ardour/ardour/chan_mapping.h | |
parent | 454f14d9c58de541a230c266ad59987b8ca7b1a4 (diff) |
More robust plugin I/O mapping.
This does not change the actual mapping logic, but makes the application of
the mapping much more robust. If there is no valid mapping for a given port,
that port is connected to silence (instead of crashing messily and/or via a
failed assertion).
Also tolerate mappings that nonsensically map to a buffer that is not present
(this particularly happens for MIDI ports in some cases) as a temporary fix.
The mapping logic needs work and/or our concept of just how much MIDI we support
in a route needs simplification...
git-svn-id: svn://localhost/ardour2/branches/3.0@10262 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/chan_mapping.h')
-rw-r--r-- | libs/ardour/ardour/chan_mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/chan_mapping.h b/libs/ardour/ardour/chan_mapping.h index 90b1d6fdf3..5b63844f66 100644 --- a/libs/ardour/ardour/chan_mapping.h +++ b/libs/ardour/ardour/chan_mapping.h @@ -39,7 +39,7 @@ public: ChanMapping() {} ChanMapping(ARDOUR::ChanCount identity); - uint32_t get(DataType t, uint32_t from); + uint32_t get(DataType t, uint32_t from, bool* valid); void set(DataType t, uint32_t from, uint32_t to); void offset_from(DataType t, int32_t delta); void offset_to(DataType t, int32_t delta); |