1234567891011121314151617181920212223 |
- /* eslint-disable no-var */
- /* eslint-disable vars-on-top */
- type $TsFixMe = any;
- declare var AudioWorkletProcessor: {
- prototype: AudioWorkletProcessor;
- new (options?: AudioWorkletNodeOptions): AudioWorkletProcessor;
- };
- interface AudioWorkletProcessor {
- readonly port: MessagePort;
- process(
- inputs: Float32Array[][],
- outputs: Float32Array[][],
- parameters: Record<string, Float32Array>,
- ): boolean;
- }
- declare function registerProcessor(
- name: string,
- processorCtor: (new (options?: AudioWorkletNodeOptions) => AudioWorkletProcessor) & {
- parameterDescriptors?: AudioParamDescriptor[];
- },
- ): undefined;
|