13
0

AU version of break recursive loops of Plugin::parameter_changed()->Plugin::ParameterChanged()->Plugin::parameter_changed() ...

git-svn-id: svn://localhost/ardour2/branches/3.0@13037 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-07-12 21:16:43 +00:00
parent b1ad798b9a
commit b04cd7d704

View File

@ -784,6 +784,10 @@ AUPlugin::set_parameter (uint32_t which, float val)
return; return;
} }
if (get_parameter() == val) {
return;
}
const AUParameterDescriptor& d (descriptors[which]); const AUParameterDescriptor& d (descriptors[which]);
DEBUG_TRACE (DEBUG::AudioUnits, string_compose ("set parameter %1 in scope %2 element %3 to %4\n", d.id, d.scope, d.element, val)); DEBUG_TRACE (DEBUG::AudioUnits, string_compose ("set parameter %1 in scope %2 element %3 to %4\n", d.id, d.scope, d.element, val));
unit->SetParameter (d.id, d.scope, d.element, val); unit->SetParameter (d.id, d.scope, d.element, val);