kopia lustrzana https://github.com/jameshball/osci-render
Fix bug with preparation
rodzic
63a0b238d5
commit
ee7e040fa6
|
@ -29,7 +29,7 @@ void AudioBackgroundThread::prepare(double sampleRate, int samplesPerBlock) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioBackgroundThread::setShouldBeRunning(bool shouldBeRunning) {
|
void AudioBackgroundThread::setShouldBeRunning(bool shouldBeRunning) {
|
||||||
if (!isPrepared) {
|
if (!isPrepared && shouldBeRunning) {
|
||||||
prepare(manager.sampleRate, manager.samplesPerBlock);
|
prepare(manager.sampleRate, manager.samplesPerBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue