opus_packet_get_bandwidth method
Gets the bandwidth of an Opus packet.
@param in
data char*: Opus packet
@retval OPUS_BANDWIDTH_NARROWBAND Narrowband (4kHz bandpass)
@retval OPUS_BANDWIDTH_MEDIUMBAND Mediumband (6kHz bandpass)
@retval OPUS_BANDWIDTH_WIDEBAND Wideband (8kHz bandpass)
@retval OPUS_BANDWIDTH_SUPERWIDEBAND Superwideband (12kHz bandpass)
@retval OPUS_BANDWIDTH_FULLBAND Fullband (20kHz bandpass)
@retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type
Implementation
int opus_packet_get_bandwidth(
ffi.Pointer<ffi.Uint8> data,
) {
return _opus_packet_get_bandwidth(data);
}