foo-webview-sdk
    Preparing search index...

    Function readPcmHeader

    • Experimental

      Read and validate the header of a shared PCM buffer.

      Checks the magic number, the layout version, the mode and that the data region fits in the buffer; any mismatch throws PcmHeaderError. A ring buffer keeps changing after this call: re-read seq, writeFrames and writeSlot through a reader rather than trusting the returned snapshot.

      Parameters

      • buffer: ArrayBuffer

      Returns PcmHeader