Interface AudioDecoder
interface AudioDecoder {
decodeQueueSize: number;
state: CodecState;
close(): void;
configure(config: AudioDecoderConfig): void;
decode(chunk: EncodedAudioChunk): void;
flush(): Promise<void>;
reset(): void;
}
decodeQueueSize: number;
state: CodecState;
close(): void;
configure(config: AudioDecoderConfig): void;
decode(chunk: EncodedAudioChunk): void;
flush(): Promise<void>;
reset(): void;
}
Methods
close
configure
- configure(config): void
Parameters
- config: AudioDecoderConfig
Returns void
decode
- decode(chunk): void
Parameters
- chunk: EncodedAudioChunk
Returns void
Available only in secure contexts.