another corner case, another broken .xm

This commit is contained in:
Andy Sloane 2015-11-02 22:50:46 -08:00
commit 07cd6e8111

2
xm.js
View file

@ -465,7 +465,7 @@ function MixChannelIntoBuf(ch, start, end, dataL, dataR) {
var looplen = 0, loopstart = 0;
// nothing on this channel, just filter the last dc offset back down to zero
if (inst == undefined || ch.mute) {
if (instsamp == undefined || inst == undefined || ch.mute) {
return MixSilenceIntoBuf(ch, start, end, dataL, dataR);
}