Member Junction
    Preparing search index...

    Handle returned by CreatePcmMicCapture: a driver rebinds it when the microphone's track changes and stops it on teardown. Production wraps an AudioContext + AudioWorkletNode pipeline; tests return a fake.

    interface IPcmMicCapture {
        Rebind(micStream: MediaStream): void;
        Stop(): void;
    }
    Index

    Methods

    Methods

    • Captures from the stream's current audio track from now on, keeping the same context and worklet, so the chunks keep flowing to the same callback. A source node reads the track it was created with, so a stream whose track was replaced (a device switch) needs this. Does nothing after Stop.

      Parameters

      • micStream: MediaStream

      Returns void

      When the stream has no audio track; capture stays on the previous one.