opus_packet_parse method
Parse an opus packet into one or more frames.
Opus_decode will perform this operation internally so most applications do
not need to use this function.
This function does not copy the frames, the returned pointers are pointers into
the input packet.
@param in
data char*: Opus packet to be parsed
@param in
len opus_int32: size of data
@param out
out_toc char*: TOC pointer
@param out
frames char*48
encapsulated frames
@param out
size opus_int1648
sizes of the encapsulated frames
@param out
payload_offset int*: returns the position of the payload within the packet (in bytes)
@returns number of frames
Implementation
int opus_packet_parse(
ffi.Pointer<ffi.Uint8> data,
int len,
ffi.Pointer<ffi.Uint8> out_toc,
ffi.Pointer<ffi.Uint8> frames,
int size,
ffi.Pointer<ffi.Int32> payload_offset,
) {
return _opus_packet_parse(data, len, out_toc, frames, size, payload_offset);
}