foo-webview-sdk
    Preparing search index...

    Interface AudioPcmReadyPayload

    Payload of the audio:pcmReady event. An audio.decodePcm task finished. Its samples reach the page as a sharedbufferreceived event on chrome.webview with the same taskId in additionalData, before or after this event. Sent to the page that started the task, only while that page still shows the document that started it.

    interface AudioPcmReadyPayload {
        channels: number;
        duration: number;
        end: number;
        frames: number;
        path: string;
        resampled: boolean;
        sampleRate: number;
        start: number;
        taskId: string;
        truncated: boolean;
    }
    Index
    channels: number

    Channel count in the buffer; 1 when mono is requested.

    duration: number

    frames / sampleRate, in seconds.

    end: number

    Track time right after the last frame, in seconds.

    frames: number

    Frames per channel in the buffer.

    path: string

    Source track path specified in the request.

    resampled: boolean

    Converted to sampleRate with foobar2000's resampler.

    sampleRate: number

    Samples per second per channel.

    start: number

    Track time of the first frame, in seconds.

    taskId: string

    Id from the audio.decodePcm answer.

    truncated: boolean

    The audio ran past the size estimated from the track length, or its format changed partway; the buffer holds the part before the cut.