Fix bug with preparation

pull/263/merge
James H Ball 2024-11-06 21:29:05 +00:00
rodzic 0b71add307
commit 9d75a3c647
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}