Fix metering lol
This commit is contained in:
parent
41e560a4d5
commit
08e571e024
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue