mwg API
    Preparing search index...

    Interface StreamPlayOptions

    interface StreamPlayOptions {
        endAfterSeconds?: number;
        endFadeSeconds?: number;
        loop?: LoopRegion | null;
        pan?: number;
        pitch?: number;
        pos?: number;
        repeat?: boolean;
        volume?: number;
    }
    Index
    endAfterSeconds?: number

    stop after this many seconds played, for a source with no end; unlimited when omitted

    endFadeSeconds?: number

    seconds of fade ahead of endAfterSeconds's end; 2 when omitted

    loop?: LoopRegion | null

    seconds the repeat jumps back to and wraps from; the whole source when omitted

    pan?: number

    stereo position, -1 (left) to 1 (right)

    pitch?: number

    playback ratio, 1 unchanged: speed and pitch together, resampled linearly

    pos?: number

    start offset in seconds

    repeat?: boolean

    true repeats through loop, or the whole source when it has a length; false plays once

    volume?: number

    level, 0 to 1