closing issue #8: "First note not played"
This commit is contained in:
parent
877e2a4adb
commit
f84d241f45
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue