Adjust loudness smoothing

This commit is contained in:
Eric Rosenbaum 2017-06-23 10:59:10 -04:00
parent a081333ddd
commit dba8c6f91d

View file

@ -317,7 +317,7 @@ class AudioEngine {
let rms = Math.sqrt(sum / this.micDataArray.length);
// smooth the value, if it is descending
if (this._lastValue) {
rms = Math.max(rms, this._lastValue * 0.5);
rms = Math.max(rms, this._lastValue * 0.6);
}
this._lastValue = rms;