Browse Source

Added a comment to clarify the behaviour of hosted parameter IDs

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
3a0ab9f42a
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp

+ 9
- 0
modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp View File

@@ -38,6 +38,15 @@ String AudioPluginInstance::getParameterID (int parameterIndex)
{
assertOnceOnDeprecatedMethodUse();
// Currently there is no corresponding method available in the
// AudioProcessorParameter class, and the previous behaviour of JUCE's
// plug-in hosting code simply returns a string version of the index; to
// maintain backwards compatibilty you should perform the operation below
// this comment. However the caveat is that for plug-ins which change their
// number of parameters dynamically at runtime you cannot rely upon the
// returned parameter ID mapping to the correct parameter. A comprehensive
// solution to this problem requires some additional work in JUCE's hosting
// code.
return String (parameterIndex);
}


Loading…
Cancel
Save