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:
parent
e1da55ccc7
commit
cf4532967d
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue