From 9d75a3c647c8685847e86785587683886ec27d47 Mon Sep 17 00:00:00 2001 From: James H Ball Date: Wed, 6 Nov 2024 21:29:05 +0000 Subject: [PATCH] Fix bug with preparation --- Source/concurrency/AudioBackgroundThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/concurrency/AudioBackgroundThread.cpp b/Source/concurrency/AudioBackgroundThread.cpp index f0257fd..6ec3add 100644 --- a/Source/concurrency/AudioBackgroundThread.cpp +++ b/Source/concurrency/AudioBackgroundThread.cpp @@ -29,7 +29,7 @@ void AudioBackgroundThread::prepare(double sampleRate, int samplesPerBlock) { } void AudioBackgroundThread::setShouldBeRunning(bool shouldBeRunning) { - if (!isPrepared) { + if (!isPrepared && shouldBeRunning) { prepare(manager.sampleRate, manager.samplesPerBlock); }