Function

GstAudio-1.0GstAudioaudio_iec61937_payload

  • Payloads src in the form specified by IEC 61937 for the type from spec and stores the result in dst. src must contain exactly one frame of data and the frame is not checked for errors.

    Parameters

    • src: string | Uint8Array<ArrayBufferLike>

      a buffer containing the data to payload

    • dst: string | Uint8Array<ArrayBufferLike>

      the destination buffer to store the payloaded contents in. Should not overlap with src

    • spec: AudioRingBufferSpec

      the ringbufer spec for src

    • endianness: number

      the expected byte order of the payloaded data

    Returns boolean

    transfer-full: true if the payloading was successful, false otherwise.