foo-webview-sdk
    Preparing search index...

    Interface DecodePcmOptions

    Options of decodePcm; the range and format fields go to the host.

    interface DecodePcmOptions {
        cueIndex?: number;
        end?: number;
        mono?: boolean;
        sampleRate?: number;
        signal?: AbortSignal;
        start?: number;
        timeoutMs?: number;
    }

    Hierarchy

    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.

    sampleRate?: number

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

    signal?: AbortSignal

    Aborting cancels the host task and rejects with a DOMException named AbortError.

    start?: number

    Start of the range, in seconds.

    timeoutMs?: number

    Milliseconds to wait for the result, queueing included, before cancelling the host task and rejecting with code TIMEOUT; 0 waits forever. Defaults to DECODE_PCM_TIMEOUT_MS.