opus_packet_get_samples_per_frame method

int opus_packet_get_samples_per_frame(
  1. Pointer<Uint8> data,
  2. int Fs
)

Gets the number of samples per frame from an Opus packet. @param in data char*: Opus packet. This must contain at least one byte of data. @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 per frame.

Implementation

int opus_packet_get_samples_per_frame(
  ffi.Pointer<ffi.Uint8> data,
  int Fs,
) {
  return _opus_packet_get_samples_per_frame(data, Fs);
}