copy AU parameters with plugin
authorRobin Gareus <robin@gareus.org>
Mon, 20 Jul 2015 14:16:41 +0000 (16:16 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 20 Jul 2015 14:17:29 +0000 (16:17 +0200)
fixes AU-plugin transfer function display.

(LADSPA & LV2 do not need this, connect&run pushes the
parameters)

libs/ardour/audio_unit.cc

index ca36c729aa18ed28d9951464dfeeee9e3b6fb0f0..428138ab54bf0dc67b98d2db15cbbd1e8dc0a58b 100644 (file)
@@ -455,6 +455,9 @@ AUPlugin::AUPlugin (const AUPlugin& other)
 
 {
        init ();
+       for (int i = 0; i < descriptors.size(); ++i) {
+               set_parameter (i, other.get_parameter (i));
+       }
 }
 
 AUPlugin::~AUPlugin ()