From 07cd6e81118807e8e277b166fa947f641b5f4775 Mon Sep 17 00:00:00 2001 From: Andy Sloane Date: Mon, 2 Nov 2015 22:50:46 -0800 Subject: [PATCH] another corner case, another broken .xm --- xm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xm.js b/xm.js index a2ec4b5..e7d3f6b 100644 --- a/xm.js +++ b/xm.js @@ -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); }