mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-07 05:15:05 +00:00
GUI: fix volume bar on ExtCh
This commit is contained in:
parent
a541183792
commit
4be68f99c5
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue