Member Junction
    Preparing search index...

    Function WriteRecordingWavHeader

    • Writes the canonical 44-byte (RECORDING_WAV_HEADER_BYTES) mono 16-bit PCM WAV header into the start of buffer. Same layout as RealtimeRecordingCapture.encodeWavBuffer; shared by every server path that produces a recording WAV so they cannot drift apart.

      Parameters

      • buffer: Buffer

        Destination; at least RECORDING_WAV_HEADER_BYTES long.

      • sampleRate: number

        Sample rate of the PCM data, in Hz.

      • dataSize: number

        Byte length of the PCM data that follows the header.

      Returns void