Merge pull request #22 from bsstoner/soundmanager

Add cofing options to override paths to soundManager js/swf files
This commit is contained in:
Michael Deal 2013-03-20 16:46:27 -07:00
commit 5095e7c2c2
2 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ connect.flash = function(filetype, instruments, conf) {
// fairly quick, but requires loading of individual MP3s (more http requests).
if (MIDI.loader) MIDI.loader.message("Flash API...");
DOMLoader.script.add({
src: "./inc/SoundManager2/script/soundmanager2.js",
src: conf.soundManagerUrl || "./inc/SoundManager2/script/soundmanager2.js",
verify: "SoundManager",
callback: function () {
MIDI.Flash.connect(conf);
@ -181,4 +181,4 @@ var createQueue = function(conf) {
return self;
};
})();
})();

View file

@ -427,7 +427,7 @@ if (window.Audio) (function () {
root.connect = function (conf) {
soundManager.flashVersion = 9;
soundManager.useHTML5Audio = true;
soundManager.url = '../inc/SoundManager2/swf/';
soundManager.url = conf.soundManagerSwfUrl || '../inc/SoundManager2/swf/';
soundManager.useHighPerformance = true;
soundManager.wmode = 'transparent';
soundManager.flashPollingInterval = 1;
@ -559,4 +559,4 @@ MIDI.noteToKey = {}; // 108 == C8
}
})();
})();
})();