Interface AudioDecoder

    Available only in secure contexts.

    interface AudioDecoder {
        decodeQueueSize: number;
        state: CodecState;
        close(): void;
        configure(config: AudioDecoderConfig): void;
        decode(chunk: EncodedAudioChunk): void;
        flush(): Promise<void>;
        reset(): void;
    }

    Properties

    decodeQueueSize: number
    state: CodecState

    Methods

    • Returns void

    • Returns void