closing issue #8: "First note not played"

This commit is contained in:
Michael Deal 2013-01-18 23:27:48 -08:00
parent 877e2a4adb
commit f84d241f45
2 changed files with 3 additions and 2 deletions

View file

@ -210,7 +210,7 @@ var startAudio = function (currentTime, fromCache) {
//
for (var n = 0; n < length && messages < 100; n++) {
queuedTime += data[n][1];
if (queuedTime <= currentTime) {
if (queuedTime < currentTime) {
offset = queuedTime;
continue;
}

View file

@ -16,7 +16,8 @@ if (typeof (MIDI.Soundfont) === "undefined") MIDI.Soundfont = {};
(function() { "use strict";
var USE_XHR = false; // Turn on to get "onprogress" event. XHR will not work from file://
// Turn on to get "onprogress" event. XHR will not work from file://
var USE_XHR = false;
MIDI.loadPlugin = function(conf) {
if (typeof(conf) === "function") conf = { callback: conf };