XM import: hide unused channels
This commit is contained in:
parent
88c7e5ad42
commit
cbca974623
|
@ -1039,6 +1039,12 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// set channel visibility
|
||||
for (int i=totalChans; i<((totalChans+32)&(~31)); i++) {
|
||||
ds.subsong[0]->chanShow[i]=false;
|
||||
ds.subsong[0]->chanShowChanOsc[i]=false;
|
||||
}
|
||||
|
||||
// find subsongs
|
||||
ds.findSubSongs(totalChans);
|
||||
|
||||
|
|
Loading…
Reference in a new issue