fuck audio for microdummies
parent
4b479b599d
commit
3bc46a2d6f
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue