1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
reuk 2023-04-19 14:23:50 +01:00
parent e1da55ccc7
commit cf4532967d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

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
}