do AU parameter change notify for user-created preset changes not just factory presets
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 11 Nov 2009 01:10:54 +0000 (01:10 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 11 Nov 2009 01:10:54 +0000 (01:10 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6059 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audio_unit.cc

index dfb21b1de9b1961c35e8e7c399ead21546f8b400..ded4dea85b237e2a2d18496998aa8eed47005c7a 100644 (file)
@@ -1384,6 +1384,13 @@ AUPlugin::load_preset (const string preset_label)
                if ((propertyList = load_property_list (ux->second)) != 0) {
                        if (unit->SetAUPreset (propertyList) == noErr) {
                                ret = true;
+
+                               /* tell the world */
+                               
+                               AudioUnitParameter changedUnit;
+                               changedUnit.mAudioUnit = unit->AU();
+                               changedUnit.mParameterID = kAUParameterListener_AnyParameter;
+                               AUParameterListenerNotify (NULL, NULL, &changedUnit);
                        }
                        CFRelease(propertyList);
                }