Add soundManagerUrl + soundManagerSwfUrl options that can be passed to loadPlugin() to override paths to soundManager js/swf files
This commit is contained in:
parent
a5edc8ae9a
commit
f52b74f08a
|
@ -72,7 +72,7 @@ connect.flash = function(filetype, instruments, conf) {
|
||||||
// fairly quick, but requires loading of individual MP3s (more http requests).
|
// fairly quick, but requires loading of individual MP3s (more http requests).
|
||||||
if (MIDI.loader) MIDI.loader.message("Flash API...");
|
if (MIDI.loader) MIDI.loader.message("Flash API...");
|
||||||
DOMLoader.script.add({
|
DOMLoader.script.add({
|
||||||
src: "./inc/SoundManager2/script/soundmanager2.js",
|
src: conf.soundManagerUrl || "./inc/SoundManager2/script/soundmanager2.js",
|
||||||
verify: "SoundManager",
|
verify: "SoundManager",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
MIDI.Flash.connect(conf);
|
MIDI.Flash.connect(conf);
|
||||||
|
@ -181,4 +181,4 @@ var createQueue = function(conf) {
|
||||||
return self;
|
return self;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -427,7 +427,7 @@ if (window.Audio) (function () {
|
||||||
root.connect = function (conf) {
|
root.connect = function (conf) {
|
||||||
soundManager.flashVersion = 9;
|
soundManager.flashVersion = 9;
|
||||||
soundManager.useHTML5Audio = true;
|
soundManager.useHTML5Audio = true;
|
||||||
soundManager.url = '../inc/SoundManager2/swf/';
|
soundManager.url = conf.soundManagerSwfUrl || '../inc/SoundManager2/swf/';
|
||||||
soundManager.useHighPerformance = true;
|
soundManager.useHighPerformance = true;
|
||||||
soundManager.wmode = 'transparent';
|
soundManager.wmode = 'transparent';
|
||||||
soundManager.flashPollingInterval = 1;
|
soundManager.flashPollingInterval = 1;
|
||||||
|
@ -559,4 +559,4 @@ MIDI.noteToKey = {}; // 108 == C8
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue