13
0

automated toggles? yes we can!

This commit is contained in:
Robin Gareus 2015-02-28 07:24:13 +01:00
parent b362f45738
commit 1b0574540f

View File

@ -612,7 +612,7 @@ AUPlugin::discover_parameters ()
d.toggled = (info.unit == kAudioUnitParameterUnit_Boolean) || d.toggled = (info.unit == kAudioUnitParameterUnit_Boolean) ||
(d.integer_step && ((d.upper - d.lower) == 1.0)); (d.integer_step && ((d.upper - d.lower) == 1.0));
d.sr_dependent = (info.unit == kAudioUnitParameterUnit_SampleFrames); d.sr_dependent = (info.unit == kAudioUnitParameterUnit_SampleFrames);
d.automatable = !d.toggled && d.automatable = /* !d.toggled && -- ardour can automate toggles, can AU ? */
!(info.flags & kAudioUnitParameterFlag_NonRealTime) && !(info.flags & kAudioUnitParameterFlag_NonRealTime) &&
(info.flags & kAudioUnitParameterFlag_IsWritable); (info.flags & kAudioUnitParameterFlag_IsWritable);