summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/plugin_insert.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-03-30 04:56:40 +0200
committerRobin Gareus <robin@gareus.org>2016-03-30 04:56:40 +0200
commit39837c0528128040c865195713fb37d41eab5067 (patch)
tree07472c432f142d642f381659b708257bf2de555a /libs/ardour/ardour/plugin_insert.h
parentb1569a17a5e5787be7ba68a590950a75ab3347fa (diff)
debug print match method
Diffstat (limited to 'libs/ardour/ardour/plugin_insert.h')
-rw-r--r--libs/ardour/ardour/plugin_insert.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/libs/ardour/ardour/plugin_insert.h b/libs/ardour/ardour/plugin_insert.h
index 12c8d94725..1441dfadb0 100644
--- a/libs/ardour/ardour/plugin_insert.h
+++ b/libs/ardour/ardour/plugin_insert.h
@@ -219,6 +219,20 @@ class LIBARDOUR_API PluginInsert : public Processor
Hide, ///< we `hide' some of the plugin's inputs by feeding them silence
};
+ /** Description of how we can match our plugin's IO to our own insert IO */
+ struct Match {
+ Match () : method (Impossible), plugins (0), strict_io (false), custom_cfg (false) {}
+ Match (MatchingMethod m, int32_t p,
+ bool strict = false, bool custom = false, ChanCount h = ChanCount ())
+ : method (m), plugins (p), hide (h), strict_io (strict), custom_cfg (custom) {}
+
+ MatchingMethod method; ///< method to employ
+ int32_t plugins; ///< number of copies of the plugin that we need
+ ChanCount hide; ///< number of channels to hide
+ bool strict_io; ///< force in == out
+ bool custom_cfg; ///< custom config (if not strict)
+ };
+
private:
/* disallow copy construction */
PluginInsert (const PluginInsert&);
@@ -250,20 +264,6 @@ class LIBARDOUR_API PluginInsert : public Processor
bool _custom_cfg;
bool _pending_no_inplace;
- /** Description of how we can match our plugin's IO to our own insert IO */
- struct Match {
- Match () : method (Impossible), plugins (0), strict_io (false), custom_cfg (false) {}
- Match (MatchingMethod m, int32_t p,
- bool strict = false, bool custom = false, ChanCount h = ChanCount ())
- : method (m), plugins (p), hide (h), strict_io (strict), custom_cfg (custom) {}
-
- MatchingMethod method; ///< method to employ
- int32_t plugins; ///< number of copies of the plugin that we need
- ChanCount hide; ///< number of channels to hide
- bool strict_io; ///< force in == out
- bool custom_cfg; ///< custom config (if not strict)
- };
-
Match private_can_support_io_configuration (ChanCount const &, ChanCount &) const;
Match automatic_can_support_io_configuration (ChanCount const &, ChanCount &) const;
@@ -291,4 +291,6 @@ class LIBARDOUR_API PluginInsert : public Processor
} // namespace ARDOUR
+std::ostream& operator<<(std::ostream& o, const ARDOUR::PluginInsert::Match& m);
+
#endif /* __ardour_plugin_insert_h__ */