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;