From 4abd8d384f464b6d3a6dcde4253f16e848de33ef Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Nov 2009 01:10:54 +0000 Subject: [PATCH] do AU parameter change notify for user-created preset changes not just factory presets git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6059 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audio_unit.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index dfb21b1de9..ded4dea85b 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -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); }