opus_packet_get_nb_samples method

int opus_packet_get_nb_samples(
  1. Pointer<Uint8> packet,
  2. int len,
  3. int Fs
)

Gets the number of samples of an Opus packet. @param in packet char*: Opus packet @param in len opus_int32: Length of packet @param in Fs opus_int32: Sampling rate in Hz. This must be a multiple of 400, or inaccurate results will be returned. @returns Number of samples @retval OPUS_BAD_ARG Insufficient data was passed to the function @retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type

Implementation

int opus_packet_get_nb_samples(
  ffi.Pointer<ffi.Uint8> packet,
  int len,
  int Fs,
) {
  return _opus_packet_get_nb_samples(packet, len, Fs);
}