Fix bug with preparation

pull/261/head
James H Ball 2024-11-06 21:29:05 +00:00 zatwierdzone przez James H Ball
rodzic 63a0b238d5
commit ee7e040fa6
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);
}