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
This commit is contained in:
Paul Davis 2009-11-11 01:10:54 +00:00
parent 343acfcaa1
commit 4abd8d384f

View 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);
}