Fix crash introduced in r11877 (oops). Add LV2Plugin::port_index().
[ardour.git] / libs / ardour / ardour / chan_mapping.h
index 5f948a77b09d1f3e76d9807e74f4e6a56558fcce..5b63844f66903efdef578ae1703cb7a9e25ed510 100644 (file)
@@ -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<uint32_t, uint32_t>    TypeMapping;
        typedef std::map<DataType, TypeMapping> Mappings;
-       
+
        Mappings       mappings()       { return _mappings; }
        const Mappings mappings() const { return _mappings; }