Make visualizer reflect EQ/preamp

This commit is contained in:
Jordan Eldredge 2017-09-14 12:42:21 -07:00
parent d140a5ee99
commit 72d456bf98

View file

@ -52,8 +52,6 @@ export default class Media {
// (Note, source is created and connected later)
//
// <source>
// |\
// | <analyser>
// |
// preamp
// |_____________
@ -65,7 +63,7 @@ export default class Media {
// |
// / \
// / \
// leftGain rightGain
// leftGain rightGain
// \ /
// \ /
// |
@ -73,6 +71,8 @@ export default class Media {
// |
// chanMerge
// |
// |\
// | <analyser>
// 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;