pub unsafe extern "C" fn opus_decoder_get_nb_samples(
dec: *const OpusDecoder,
packet: *const c_uchar,
len: opus_int32,
) -> c_intExpand description
Gets the number of samples of an Opus packet.
§Arguments
dec[in] - OpusDecoder*: Decoder statepacket[in] - char*: Opus packetlen[in] - opus_int32: Length of packet
§Returns
Number of samples
OPUS_BAD_ARGInsufficient data was passed to the functionOPUS_INVALID_PACKETThe compressed data passed is corrupted or of an unsupported type