opus_packet_get_samples_per_frame

Function opus_packet_get_samples_per_frame 

Source
pub unsafe extern "C" fn opus_packet_get_samples_per_frame(
    data: *const u8,
    Fs: i32,
) -> i32
Expand description

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.