mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Misc cleanup
This commit is contained in:
parent
b519d85127
commit
14809dfda7
2 changed files with 0 additions and 5 deletions
1
src/@types/global.d.ts
vendored
1
src/@types/global.d.ts
vendored
|
@ -138,7 +138,6 @@ declare global {
|
||||||
outputs: Float32Array[][],
|
outputs: Float32Array[][],
|
||||||
parameters: Record<string, Float32Array>
|
parameters: Record<string, Float32Array>
|
||||||
): boolean;
|
): boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/microsoft/TypeScript/issues/28308#issuecomment-650802278
|
// https://github.com/microsoft/TypeScript/issues/28308#issuecomment-650802278
|
||||||
|
|
|
@ -25,10 +25,6 @@ declare const currentTime: number;
|
||||||
class MxVoiceWorklet extends AudioWorkletProcessor {
|
class MxVoiceWorklet extends AudioWorkletProcessor {
|
||||||
private nextAmplitudeSecond = 0;
|
private nextAmplitudeSecond = 0;
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
process(inputs, outputs, parameters) {
|
process(inputs, outputs, parameters) {
|
||||||
// We only fire amplitude updates once a second to avoid flooding the recording instance
|
// We only fire amplitude updates once a second to avoid flooding the recording instance
|
||||||
// with useless data. Much of the data would end up discarded, so we ratelimit ourselves
|
// with useless data. Much of the data would end up discarded, so we ratelimit ourselves
|
||||||
|
|
Loading…
Reference in a new issue