1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
Pixout Lighting 2025-09-15 17:02:40 +03:00 committed by GitHub
commit 4c7a042e31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<bool> nonRealtime { false };
ProcessingPrecision processingPrecision = singlePrecision;
CriticalSection callbackLock, listenerLock, activeEditorLock;