small modifications to make the waveform enabled in firefox 21 (playout does not work though)

This commit is contained in:
Naomi 2013-05-27 11:55:57 -04:00
parent 06fbbe89f2
commit 9ce3b0c043
2 changed files with 3 additions and 5 deletions

View file

@ -16,8 +16,6 @@ AudioPlayout.prototype.init = function(config) {
this.gainNode = undefined;
this.destination = this.ac.destination;
this.analyser = this.ac.createAnalyser();
this.analyser.connect(this.destination);
};
AudioPlayout.prototype.getBuffer = function() {
@ -41,7 +39,7 @@ AudioPlayout.prototype.applyFades = function(fades, relPos, now, delay) {
duration;
this.gainNode && this.gainNode.disconnect();
this.gainNode = this.ac.createGainNode();
this.gainNode = this.ac.createGain();
for (id in fades) {
@ -137,7 +135,7 @@ AudioPlayout.prototype.setSource = function(source) {
this.source.buffer = this.buffer;
this.source.connect(this.gainNode);
this.gainNode.connect(this.analyser);
this.gainNode.connect(this.destination);
};
/*