opus_decoder_get_nb_samples method
Gets the number of samples of an Opus packet.
@param in
dec OpusDecoder*: Decoder state
@param in
packet char*: Opus packet
@param in
len opus_int32: Length of packet
@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_decoder_get_nb_samples(
ffi.Pointer<OpusDecoder> dec,
ffi.Pointer<ffi.Uint8> packet,
int len,
) {
return _opus_decoder_get_nb_samples(dec, packet, len);
}