mwg API
    Preparing search index...

    Interface StreamChannelOptions

    interface StreamChannelOptions {
        chunkSeconds?: number;
        lookaheadSeconds?: number;
        pumpMs?: number;
        schedule?: (callback: () => void, ms: number) => unknown;
        unschedule?: (handle: unknown) => void;
    }
    Index
    chunkSeconds?: number

    seconds of audio per scheduled chunk; 0.5 when omitted

    lookaheadSeconds?: number

    how far ahead of the clock chunks are queued; 2 seconds when omitted, enough to ride out a throttled background timer

    pumpMs?: number

    milliseconds between self-driven pumps; 100 when omitted, 0 to turn the timer off and call update() yourself

    schedule?: (callback: () => void, ms: number) => unknown

    replaces setTimeout for the pump, so a test drives time by hand

    unschedule?: (handle: unknown) => void

    cancels what schedule returned; clearTimeout when omitted