Fix metering lol

This commit is contained in:
Marks Polakovs 2020-05-09 17:30:34 +02:00
parent 41e560a4d5
commit 08e571e024

View file

@ -311,7 +311,7 @@ export class AudioEngine extends ((EngineEmitter as unknown) as {
for (let i = 0; i < this.analysisBuffer.length; i++) {
peak = Math.max(peak, Math.abs(this.analysisBuffer[i]));
}
return 10 * Math.log10(peak);
return 20 * Math.log10(peak);
}
async playNewsEnd() {