mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
Adjust loudness smoothing
This commit is contained in:
parent
a081333ddd
commit
dba8c6f91d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue