audioIec61937Payload

fnbool audioIec61937Payload(ubyte[] src, ubyte[] dst, gstaudio.audio_ring_buffer_spec.AudioRingBufferSpec spec, int endianness)

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

srca buffer containing the data to payload
dstthe destination buffer to store the payloaded contents in. Should not overlap with src
specthe ringbufer spec for src
endiannessthe expected byte order of the payloaded data

Returns

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

otherwise.