Tune EQ analyser node. Fixes #613

This commit is contained in:
Jordan Eldredge 2018-07-07 12:47:41 -07:00
parent cf1b4082bc
commit 52d1d2af93

View file

@ -55,10 +55,11 @@ export default class Media {
// Create the analyser node for the visualizer
this._analyser = this._context.createAnalyser();
this._analyser.fftSize = 2048;
// TODO: Tune these to something that looks like Winamp
this._analyser.minDecibels = -90;
this._analyser.maxDecibels = -10;
this._analyser.smoothingTimeConstant = 0.8;
// Tuned by @The1Freeman to resemble Winamp 2.9x.
// https://github.com/captbaritone/webamp/pull/613
this._analyser.minDecibels = -64;
this._analyser.maxDecibels = 0;
this._analyser.smoothingTimeConstant = 0.25;
// Create the gain node for the volume control
this._gainNode = this._context.createGain();