From 95adff746207bb68f5db16cfc9c0e91873016711 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Tue, 26 Sep 2023 17:07:58 +0800 Subject: [PATCH] AudioProcessor // Stop crashing when debugging standalone in Xcode. --- .../processors/juce_AudioProcessor.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp index 7ea8d23bcc07..7b96e3a624d4 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp @@ -437,9 +437,11 @@ void AudioProcessor::validateParameter (AudioProcessorParameter* param) See the documentation for AudioProcessorParameter(int) for more information. */ #if JucePlugin_Build_AU - static std::once_flag flag; - if (wrapperType != wrapperType_Undefined && param->getVersionHint() == 0) - std::call_once (flag, [] { jassertfalse; }); + #if !DEBUG + static std::once_flag flag; + if (wrapperType != wrapperType_Undefined && param->getVersionHint() == 0) + std::call_once (flag, [] { jassertfalse; }); + #endif #endif }