some plugin-insert debugging
authorRobin Gareus <robin@gareus.org>
Tue, 19 Apr 2016 17:02:03 +0000 (19:02 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 19 Apr 2016 17:03:16 +0000 (19:03 +0200)
* report inplace
* debug-dump reason(s) why i/o maps are reset

libs/ardour/ardour/plugin_insert.h
libs/ardour/plugin_insert.cc

index c8f0a84222e391f5f2536a4a4dc1db5c798490c1..5c7f403a0e67bf55849ff51a5d13be57aebf9049 100644 (file)
@@ -96,6 +96,7 @@ class LIBARDOUR_API PluginInsert : public Processor
        ChanMapping output_map () const; ///< combined (all instances) output map
        bool has_midi_bypass () const;
        bool has_midi_thru () const;
+       bool inplace () const { return ! _no_inplace; }
 
 #ifdef MIXBUS
        bool is_channelstrip () const;
index d6b2a6a1e9f2117388a2d607d925c071ae0e56da..443e1b565e60424540f01e618b374d648de92990 100644 (file)
@@ -1489,6 +1489,15 @@ PluginInsert::configure_io (ChanCount in, ChanCount out)
                        mapping_changed = true;
                        sanitize_maps ();
                } else {
+                       DEBUG_TRACE (DEBUG::ChanMapping, string_compose ("Reset Map for '%1': cfg:%2 chn-in:%3 chn-out:%4 match:%5 size-in:%6 size-out:%7\n",
+                                               name (),
+                                               _configured ? "Y" : "N",
+                                               old_in == in ? "==" : "!=",
+                                               old_out == out ? "==" : "mismatch",
+                                               old_match.method == _match.method ? "==" : "!=",
+                                               _in_map.size() == get_count () ? "==" : "!=",
+                                               _out_map.size() == get_count () ? "==" : "!="
+                                               ));
                        /* generate a new mapping */
                        mapping_changed = reset_map (false);
                }