Misc cleanup
This commit is contained in:
Vendored
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user