Allow to send MIDI data directly to a plugin
[ardour.git] / libs / ardour / plugin_insert.cc
index 2afd18d19972fab07fc97b924b5062ecbfc559a3..ce05d6c298fc536b5da25eb9d86ab9c0f198c0b5 100644 (file)
@@ -705,6 +705,18 @@ PluginInsert::bypassable_changed ()
        BypassableChanged ();
 }
 
+bool
+PluginInsert::write_immediate_event (size_t size, const uint8_t* buf)
+{
+       bool rv = true;
+       for (Plugins::iterator i = _plugins.begin(); i != _plugins.end(); ++i) {
+               if (!(*i)->write_immediate_event (size, buf)) {
+                       rv = false;
+               }
+       }
+       return rv;
+}
+
 void
 PluginInsert::preset_load_set_value (uint32_t p, float v)
 {