diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.h b/modules/juce_audio_processors/processors/juce_AudioProcessor.h index b7d8b633e0..5bc4d889e5 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.h +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.h @@ -821,6 +821,12 @@ public: */ double getSampleRate() const noexcept { return currentSampleRate; } + /** Returns true if plugin in the current DAW is bypassed. */ + bool getIsDawBypass() const noexcept { return isDawBypass; } + + /** Changes the processor flag to bypassed. */ + void setIsDawBypass(bool bIsDawBypass) noexcept { isDawBypass = bIsDawBypass; } + /** Returns the current typical block size that is being used. This can be called from your processBlock() method - it's not guaranteed @@ -1600,6 +1606,7 @@ private: double currentSampleRate = 0; int blockSize = 0, latencySamples = 0; bool suspended = false; + bool isDawBypass = false; std::atomic nonRealtime { false }; ProcessingPrecision processingPrecision = singlePrecision; CriticalSection callbackLock, listenerLock, activeEditorLock;