var Sounds = {};
Sounds.musicMeadow = new Audio("assets/audio/wandering.mp3");
Sounds.musicMeadow.loop = true;
Sounds.musicMeadow.volume = 0.1;
Sounds.musicMeadow.play();


@@ -14,133 +14,946 @@
 %7B%7D;%0A
-Sounds.musicMeadow = new Audio(%22assets/audio/wandering.mp3%22);%0ASounds.musicMeadow.loop = true;%0ASounds.musicMeadow.volume = 0.1
+function getAudioData(url, callback, audioContext) %7B%0A%09var request = new XMLHttpRequest();%0A%09request.open(%22GET%22, url, true);%0A%09request.responseType = %22arraybuffer%22;%0A%0A%09request.onload = function() %7B%0A%09%09audioContext.decodeAudioData(request.response, function(data) %7B%0A%09%09%09%09callback(data, undefined);%0A%09%09%09%7D,%0A%09%09%09function() %7B%0A%09%09%09%09console.log(%22Error decoding file '%22 + url + %22'%22 );%0A%09%09%09%7D);%0A%09%7D%0A%09request.send();%0A%7D%0A%0ASounds.sound = function(url)%7B%0A%09this.url = url;%0A%09this.buffer = null;%0A%09this.audioContext = new AudioContext();%0A%0A%09this.play = function(loop)%7B%0A%09%09var obj = this;%0A%09%09getAudioData(this.url, function(data) %7B%0A%09%09%09obj.source = obj.audioContext.createBufferSource();%0A%09%09%09obj.source.buffer = data;%0A%09%09%09obj.source.loop = loop;%0A%09%09%09obj.source.connect(obj.audioContext.destination);%0A%09%09%09obj.source.start(0);%0A%09%09%7D, this.audioContext);%0A%09%7D%0A%0A%09this.pause = function() %7B%0A%09%09this.source.stop(0);%0A%09%7D%0A%7D%0A%0ASounds.musicMeadow = new Sounds.sound(%22/assets/audio/wandering.mp3%22)
 ;%0ASo
@@ -974,12 +974,15 @@
 ow.play(
+true
 );%0A
-%0A

Change audio system