foo-webview-sdk
    Preparing search index...

    Interface AudioGetWaveformSuccess

    Successful response from audio.getWaveform.

    interface AudioGetWaveformSuccess {
        channelCount: number;
        channels: "mix" | "stereo";
        duration: number;
        left?: number[];
        right?: number[];
        sampleRate: number;
        signed: boolean;
        success: true;
        waveform?: number[];
    }
    Index
    channelCount: number

    Channel count of the visualization stream; 1 after setChannelMode with mono.

    channels: "mix" | "stereo"

    As requested.

    duration: number

    Window length in seconds, as requested.

    left?: number[]

    stereo answers: the first channel.

    right?: number[]

    stereo answers: the second channel; a copy of left when the stream has one channel.

    sampleRate: number

    Sample rate of the visualization stream in Hz.

    signed: boolean

    As requested.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.

    waveform?: number[]

    mix answers: one value per sample.