opus_multistream_packet_pad method

int opus_multistream_packet_pad(
  1. Pointer<Uint8> data,
  2. int len,
  3. int new_len,
  4. int nb_streams,
)

Pads a given Opus multi-stream packet to a larger size (possibly changing the TOC sequence). @paramin,out data const unsigned char*: The buffer containing the packet to pad. @param len opus_int32: The size of the packet. This must be at least 1. @param new_len opus_int32: The desired size of the packet after padding. 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 as large as len. @returns an error code @retval #OPUS_OK a on success. @retval #OPUS_BAD_ARG a len was less than 1. @retval #OPUS_INVALID_PACKET a data did not contain a valid Opus packet.

Implementation

int opus_multistream_packet_pad(
  ffi.Pointer<ffi.Uint8> data,
  int len,
  int new_len,
  int nb_streams,
) {
  return _opus_multistream_packet_pad(data, len, new_len, nb_streams);
}