fix another semantically-significant statement buried in an assert() macro
[ardour.git] / libs / ardour / plugin.cc
index 4afc39b4ecdb63abedd873169115262b92bf8307..57198475d72f9ad81d355924e91a19da7acd4ea5 100644 (file)
@@ -256,9 +256,8 @@ Plugin::connect_and_run (BufferSet& bufs,
                /* Track notes that we are sending to the plugin */
 
                MidiBuffer& b = bufs.get_midi (0);
-               bool looped;
 
-               _tracker.track (b.begin(), b.end(), looped);
+               _tracker.track (b.begin(), b.end());
 
                if (_have_pending_stop_events) {
                        /* Transmit note-offs that are pending from the last transport stop */
@@ -327,13 +326,23 @@ Plugin::load_preset (PresetRecord r)
        return true;
 }
 
+void
+Plugin::clear_preset ()
+{
+       _last_preset.uri = "";
+       _last_preset.label = "";
+       _parameter_changed_since_last_preset = false;
+
+       PresetLoaded (); /* EMIT SIGNAL */
+}
+
 /** @param val `plugin' value */
 void
-Plugin::set_parameter (uint32_t which, float val)
+Plugin::set_parameter (uint32_t which, float)
 {
        _parameter_changed_since_last_preset = true;
        _session.set_dirty ();
-       ParameterChanged (which, val); /* EMIT SIGNAL */
+       ParameterChanged (which, get_parameter (which)); /* EMIT SIGNAL */
 }
 
 int