return;
}
- qwebirc.util.importJS("/js/soundmanager2.js", "soundManager", function() {
- soundManager.url = "/sound/";
+ var debugMode = false;
+ qwebirc.util.importJS(qwebirc.global.staticBaseURL + "js/" + (debugMode?"soundmanager2":"soundmanager2-nodebug-jsmin") + ".js", "soundManager", function() {
+ soundManager.url = qwebirc.global.staticBaseURL + "sound/";
- /* Fixes Firefox z-index Flash bug */
- if(Browser.Engine.gecko)
- soundManager.useHighPerformance = false;
-
- soundManager.debugMode = false;
- soundManager.useConsole = false;
+ soundManager.debugMode = debugMode;
+ soundManager.useConsole = debugMode;
soundManager.onload = function() {
this.loadedSWF = true;
this.fireEvent("ready");
},
beep: function() {
if(!this.beepLoaded) {
- this.createSound("beep", "/sound/beep3.mp3");
+ this.createSound("beep", qwebirc.global.staticBaseURL + "sound/beep3.mp3");
this.beepLoaded = true;
}
this.playSound("beep");