Skip to content

Commit 24719fe

Browse files
committed
Notify waveform to GUI only if GUI on (fixes bug with zrythm)
1 parent 3a9b1c1 commit 24719fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/BJumblr.lv2/**
2+
.tags

src/BJumblr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void BJumblr::run (uint32_t n_samples)
428428
size_t acount = (maxBufferSize + audioBufferCounter - audioBufferSize + (i * audioBufferSize) / WAVEFORMSIZE) % maxBufferSize;
429429
waveform[wcount] = (audioBuffer1[acount] + (audioBuffer2[acount])) / 2;
430430
}
431-
notifyWaveformToGui ((waveformCounter + 1) % WAVEFORMSIZE, waveformCounter);
431+
if (ui_on) notifyWaveformToGui ((waveformCounter + 1) % WAVEFORMSIZE, waveformCounter);
432432
}
433433
}
434434
}

0 commit comments

Comments
 (0)