Class(UnlimitedPizza, "Pepperoni").inherits(Widget)({
INNER_HTML : ' \
-<a class="record-button">⬤</a> \
+<a class="record-button">Record.</a> \
<div class="record-info"> \
<div class="record-progress"> \
<div class="record-progress-bar-container"> \
<div class="record-progress-bar"></div> \
</div> \
- <a class="record-clear">X</a> \
+ <a class="record-clear">Clear recording.</a> \
</div> \
<audio class="record-preview" controls></audio> \
<div class="filter-switches"> \
</div> \
</div> \
',
- PAUSE : '▐▐',
- RECORD : '⬤',
+ PAUSE : 'Pause.',
+ RECORD : 'Record.',
prototype : {
maxSize : 1048576,
recording : false,
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();