[][src]Function audiopus_sys::opus_packet_get_samples_per_frame

pub unsafe extern "C" fn opus_packet_get_samples_per_frame(
    data: *const c_uchar,
    Fs: opus_int32
) -> c_int

Gets the number of samples per frame from an Opus packet. @param [in] data char*: Opus packet. This must contain at least one byte of data. @param [in] Fs opus_int32: Sampling rate in Hz. This must be a multiple of 400, or inaccurate results will be returned. @returns Number of samples per frame.