Misc cleanup

This commit is contained in:
Travis Ralston 2021-04-22 08:22:31 -06:00
parent b519d85127
commit 14809dfda7
2 changed files with 0 additions and 5 deletions

View file

@ -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

View file

@ -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