From 72d456bf9865f36c14fb628d4e109bc8d0adfd4e Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 14 Sep 2017 12:42:21 -0700 Subject: [PATCH] Make visualizer reflect EQ/preamp --- js/media.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/media.js b/js/media.js index 04546c4a..c4205ce5 100644 --- a/js/media.js +++ b/js/media.js @@ -52,8 +52,6 @@ export default class Media { // (Note, source is created and connected later) // // - // |\ - // | // | // preamp // |_____________ @@ -65,7 +63,7 @@ export default class Media { // | // / \ // / \ - // leftGain rightGain + // leftGain rightGain // \ / // \ / // | @@ -73,6 +71,8 @@ export default class Media { // | // chanMerge // | + // |\ + // | // gain // | // destination @@ -182,8 +182,8 @@ export default class Media { if (this._buffer) { this._source = this._context.createBufferSource(); this._source.buffer = this._buffer; - this._source.connect(this._analyser); this._source.connect(this._preamp); + this._chanMerge.connect(this._analyser); this._position = typeof position !== "undefined" ? position : this._position;