fuck audio for microdummies

beta.r3js.org
-=yb4f310 2018-01-18 14:01:41 +01:00
parent 4b479b599d
commit 3bc46a2d6f
1 changed files with 15 additions and 11 deletions

View File

@ -80,7 +80,9 @@ GameLib.D3.Audio.prototype.createInstance = function() {
console.log('loading audio : ' + this.name);
//Load a sound and set it as the Audio object's buffer
if (document.documentMode || /Edge/.test(navigator.userAgent)) {
GameLib.Component.prototype.createInstance.call(this);
} else {
audioLoader.load(
this.apiUrl + this.path + '?ts=' + Date.now(),
function (buffer) {
@ -93,6 +95,8 @@ GameLib.D3.Audio.prototype.createInstance = function() {
GameLib.Component.prototype.createInstance.call(this);
}.bind(this)
);
}
};
/**