GUI: fix volume bar on ExtCh

This commit is contained in:
tildearrow 2022-11-15 03:25:42 -05:00
parent a541183792
commit 4be68f99c5
1 changed files with 5 additions and 0 deletions

View File

@ -77,7 +77,12 @@ void FurnaceGUI::calcChanOsc() {
int chans=e->getTotalChannelCount();
for (int i=0; i<chans; i++) {
int tryAgain=i;
DivDispatchOscBuffer* buf=e->getOscBuffer(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;