foo-webview-sdk
    Preparing search index...

    Interface AudioDecodePcmParamsExperimental

    Parameters for audio.decodePcm. Decode a track, or a range of it, into float32 planar PCM delivered through a shared buffer. Answers with a task id right away; the samples arrive as a sharedbufferreceived event on chrome.webview together with audio:pcmReady, or the task ends with audio:pcmFailed.

    interface AudioDecodePcmParams {
        cueIndex?: number;
        end?: number;
        mono?: boolean;
        path: string;
        sampleRate?: number;
        start?: number;
    }
    Index
    cueIndex?: number

    Cue subsong index, 0-based; takes precedence over a subsong in path.

    end?: number

    End of the range, in seconds; defaults to the end of the track and is cut to the track length. Must be greater than start.

    mono?: boolean

    Average all channels into one.

    path: string

    Path of the track to decode; a |subsong:N suffix selects a subsong.

    sampleRate?: number

    Sample rate to convert to with foobar2000's resampler; defaults to the source rate.

    start?: number

    Start of the range, in seconds.