AU: mark preset dirty when parameter changes
[ardour.git] / libs / ardour / audio_unit.cc
index b6beacad848c4ab8c3bfe3ee2580d01d61ca55a9..73fd6bf94baca9cc67cb553911f8ab24bc094edc 100644 (file)
@@ -487,6 +487,7 @@ AUPlugin::AUPlugin (const AUPlugin& other)
        , input_buffers (0)
        , input_map (0)
        , samples_processed (0)
+       , audio_input_cnt (0)
        , _parameter_listener (0)
        , _parameter_listener_arg (0)
        , transport_sample (0)
@@ -1638,7 +1639,7 @@ AUPlugin::render_callback(AudioUnitRenderActionFlags*,
 int
 AUPlugin::connect_and_run (BufferSet& bufs,
                samplepos_t start, samplepos_t end, double speed,
-               ChanMapping in_map, ChanMapping out_map,
+               ChanMapping const& in_map, ChanMapping const& out_map,
                pframes_t nframes, samplecnt_t offset)
 {
        Plugin::connect_and_run(bufs, start, end, speed, in_map, out_map, nframes, offset);
@@ -2278,7 +2279,7 @@ AUPlugin::do_save_preset (string preset_name)
 
        DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU Saving Preset to %1\n", user_preset_path));
 
-       return string ("file:///") + user_preset_path;
+       return user_preset_path;
 }
 
 //-----------------------------------------------------------------------------
@@ -2555,7 +2556,7 @@ AUPlugin::find_presets ()
                */
 
                if (check_and_get_preset_name (get_comp()->Comp(), path, preset_name)) {
-                       user_preset_map[preset_name] = "file:///" + path;
+                       user_preset_map[preset_name] = path;
                        DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU Preset File: %1 > %2\n", preset_name, path));
                } else {
                        DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU INVALID Preset: %1 > %2\n", preset_name, path));
@@ -3478,7 +3479,7 @@ AUPlugin::parameter_change_listener (void* /*arg*/, void* src, const AudioUnitEv
                 /* whenever we change a parameter, we request that we are NOT notified of the change, so anytime we arrive here, it
                    means that something else (i.e. the plugin GUI) made the change.
                 */
-                ParameterChangedExternally (i->second, new_value);
+                Plugin::parameter_changed_externally (i->second, new_value);
                 break;
         default:
                 break;