interface AudioData {
    duration: number;
    format: null | AudioSampleFormat;
    numberOfChannels: number;
    numberOfFrames: number;
    sampleRate: number;
    timestamp: number;
    allocationSize(options: AudioDataCopyToOptions): number;
    clone(): AudioData;
    close(): void;
    copyTo(
        destination: AllowSharedBufferSource,
        options: AudioDataCopyToOptions,
    ): void;
}

Properties

duration: number
format: null | AudioSampleFormat
numberOfChannels: number
numberOfFrames: number
sampleRate: number
timestamp: number

Methods

  • Returns void