kopia lustrzana https://github.com/jameshball/osci-render
Fix bug with preparation
rodzic
0b71add307
commit
9d75a3c647
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue