opus_multistream_packet_unpad method
Remove all padding from a given Opus multi-stream packet and rewrite the TOC sequence to
minimize space usage.
@paramin,out
data const unsigned char*: The buffer containing the
packet to strip.
@param len opus_int32: The size of the packet.
This must be at least 1.
@param nb_streams opus_int32: The number of streams (not channels) in the packet.
This must be at least 1.
@returns The new size of the output packet on success, or an error code
on failure.
@retval #OPUS_BAD_ARG a len was less than 1 or new_len was less than len.
@retval #OPUS_INVALID_PACKET a data did not contain a valid Opus packet.
Implementation
int opus_multistream_packet_unpad(
ffi.Pointer<ffi.Uint8> data,
int len,
int nb_streams,
) {
return _opus_multistream_packet_unpad(data, len, nb_streams);
}