Browse Source

AudioProcessor: Only warn once if any parameter version hint is zero

v7.0.9
reuk 2 years ago
parent
commit
cf4532967d
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_processors/processors/juce_AudioProcessor.cpp

+ 3
- 1
modules/juce_audio_processors/processors/juce_AudioProcessor.cpp View File

@@ -437,7 +437,9 @@ void AudioProcessor::validateParameter (AudioProcessorParameter* param)
See the documentation for AudioProcessorParameter(int) for more information.
*/
#if JucePlugin_Build_AU
jassert (wrapperType == wrapperType_Undefined || param->getVersionHint() != 0);
static std::once_flag flag;
if (wrapperType == wrapperType_Undefined || param->getVersionHint() != 0)
std::call_once (flag, [] { jassertfalse; });
#endif
}


Loading…
Cancel
Save