pub unsafe extern "C" fn opus_packet_get_bandwidth(
data: *const c_uchar,
) -> c_intExpand description
Gets the bandwidth of an Opus packet.
§Arguments
data[in] - char*: Opus packet
§Returns
-
OPUS_BANDWIDTH_NARROWBANDNarrowband (4kHz bandpass) -
OPUS_BANDWIDTH_MEDIUMBANDMediumband (6kHz bandpass) -
OPUS_BANDWIDTH_WIDEBANDWideband (8kHz bandpass) -
OPUS_BANDWIDTH_SUPERWIDEBANDSuperwideband (12kHz bandpass) -
OPUS_BANDWIDTH_FULLBANDFullband (20kHz bandpass) -
OPUS_INVALID_PACKETThe compressed data passed is corrupted or of an unsupported type