diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index bdc935fc39..3eefda513b 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2053,7 +2053,8 @@ private: String name; CriticalSection lock; std::atomic wantsMidiMessages { false }; - bool initialised = false, isPowerOn = false; + bool initialised = false; + std::atomic isPowerOn { false }; bool lastProcessBlockCallWasBypass = false, vstSupportsBypass = false; mutable StringArray programNames; AudioBuffer outOfPlaceBuffer; diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.h b/modules/juce_audio_processors/processors/juce_AudioProcessor.h index 836b09c7c9..28f79f5c6f 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.h @@ -1466,7 +1466,8 @@ private: Component::SafePointer activeEditor; double currentSampleRate = 0; int blockSize = 0, latencySamples = 0; - bool suspended = false, nonRealtime = false; + bool suspended = false; + std::atomic nonRealtime { false }; ProcessingPrecision processingPrecision = singlePrecision; CriticalSection callbackLock, listenerLock, activeEditorLock;