opus_packet_unpad method

int opus_packet_unpad(
  1. Pointer<Uint8> data,
  2. int len
)

Remove all padding from a given Opus 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. @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. @retval #OPUS_INVALID_PACKET a data did not contain a valid Opus packet.

Implementation

int opus_packet_unpad(
  ffi.Pointer<ffi.Uint8> data,
  int len,
) {
  return _opus_packet_unpad(data, len);
}