From 4445af4bc58d97116ff9acb654ad15eb3f5e0e60 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 24 Sep 2017 15:00:14 -0700 Subject: [PATCH] Only connect the analyser once. --- js/media.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/media.js b/js/media.js index c4205ce5..cdbbe5f5 100644 --- a/js/media.js +++ b/js/media.js @@ -112,6 +112,7 @@ export default class Media { this._rightGain.connect(this._chanMerge, 0, 1); this._chanMerge.connect(this._gainNode); + this._chanMerge.connect(this._analyser); this._gainNode.connect(this._context.destination); @@ -183,7 +184,6 @@ export default class Media { this._source = this._context.createBufferSource(); this._source.buffer = this._buffer; this._source.connect(this._preamp); - this._chanMerge.connect(this._analyser); this._position = typeof position !== "undefined" ? position : this._position;