]> git.r.bdr.sh - rbdr/r.bdr.sh/blobdiff - jekyll/js/unlimited_pizza/pepperoni.js
Remvoes more extra stuff
[rbdr/r.bdr.sh] / jekyll / js / unlimited_pizza / pepperoni.js
index 9bb27a2167bce4a52e3910f28ea14dc0539bb703..c20f285e8ba85bf1bbf45ffa5898a973e4432a2d 100644 (file)
@@ -73,16 +73,16 @@ Class(UnlimitedPizza, "Pepperoni").inherits(Widget)({
       this._bandPassFilterNode.gain.value = 25;
 
       requestHandler = function bufferFile(ev) {
-        var request = event.target;
+        var request = ev.target;
         console.log("Reverb loading");
         this.context.decodeAudioData(request.response, function(buffer){ 
           console.log("Reverb loaded");
           this._convolverNode.buffer = buffer;
-        });
+        }.bind(this));
       }.bind(this);
 
       request = new XMLHttpRequest();
-      request.open('GET', '/reverb.aiff', true);
+      request.open('GET', '/reverb.ogg', true);
       request.responseType = 'arraybuffer';
       request.addEventListener('load', requestHandler, false);
       request.send();