|
|
@@ -866,9 +866,14 @@ public: |
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
// When parameters are discrete we need to use integer values.
|
|
|
|
float getMaximumParameterValue (AudioProcessorParameter* param)
|
|
|
|
float getMaximumParameterValue (AudioProcessorParameter* juceParam)
|
|
|
|
{
|
|
|
|
return param->isDiscrete() && (! forceUseLegacyParamIDs) ? (float) (param->getNumSteps() - 1) : 1.0f;
|
|
|
|
#if JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE
|
|
|
|
ignoreUnused (juceParam);
|
|
|
|
return 1.0f;
|
|
|
|
#else
|
|
|
|
return juceParam->isDiscrete() ? (float) (juceParam->getNumSteps() - 1) : 1.0f;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
ComponentResult GetParameterInfo (AudioUnitScope inScope,
|
|
|
|