X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fchan_mapping.h;h=5b63844f66903efdef578ae1703cb7a9e25ed510;hb=722defe41a6119cfe6e9f5a66fdcb2408c12a455;hp=5f948a77b09d1f3e76d9807e74f4e6a56558fcce;hpb=7183242b8c8d9296f94a035fb66b1eae06fd3496;p=ardour.git diff --git a/libs/ardour/ardour/chan_mapping.h b/libs/ardour/ardour/chan_mapping.h index 5f948a77b0..5b63844f66 100644 --- a/libs/ardour/ardour/chan_mapping.h +++ b/libs/ardour/ardour/chan_mapping.h @@ -1,6 +1,6 @@ /* - Copyright (C) 2009 Paul Davis - Author: Dave Robillard + Copyright (C) 2009 Paul Davis + Author: David Robillard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -38,15 +38,15 @@ class ChanMapping { 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); - + typedef std::map TypeMapping; typedef std::map Mappings; - + Mappings mappings() { return _mappings; } const Mappings mappings() const { return _mappings; }