Function opus_packet_get_nb_frames

Source
pub unsafe extern "C" fn opus_packet_get_nb_frames(
    packet: *const c_uchar,
    len: opus_int32,
) -> c_int
Expand description

Gets the number of frames in an Opus packet.

§Arguments

  • packet [in] - char*: Opus packet
  • len [in] - opus_int32: Length of packet

§Returns

Number of frames

  • OPUS_BAD_ARG Insufficient data was passed to the function
  • OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type