Function opus_packet_get_bandwidth

Source
pub unsafe extern "C" fn opus_packet_get_bandwidth(
    data: *const c_uchar,
) -> c_int
Expand description

Gets the bandwidth of an Opus packet.

ยงArguments

  • data [in] - char*: Opus packet
  • OPUS_BANDWIDTH_NARROWBAND Narrowband (4kHz bandpass)
  • OPUS_BANDWIDTH_MEDIUMBAND Mediumband (6kHz bandpass)
  • OPUS_BANDWIDTH_WIDEBAND Wideband (8kHz bandpass)
  • OPUS_BANDWIDTH_SUPERWIDEBAND Superwideband (12kHz bandpass)
  • OPUS_BANDWIDTH_FULLBAND Fullband (20kHz bandpass)
  • OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type