From 4be68f99c5bd3d44a9896386cf5f6804f2fce3d2 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 15 Nov 2022 03:25:42 -0500 Subject: [PATCH] GUI: fix volume bar on ExtCh --- src/gui/chanOsc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/chanOsc.cpp b/src/gui/chanOsc.cpp index 851ca6ede..24c25f4bd 100644 --- a/src/gui/chanOsc.cpp +++ b/src/gui/chanOsc.cpp @@ -77,7 +77,12 @@ void FurnaceGUI::calcChanOsc() { int chans=e->getTotalChannelCount(); for (int i=0; igetOscBuffer(i); + while (buf==NULL) { + if (--tryAgain<0) break; + buf=e->getOscBuffer(tryAgain); + } if (buf!=NULL && e->curSubSong->chanShow[i]) { // 30ms should be enough int displaySize=(float)(buf->rate)*0.03f;