[][src]Function opus_sys2::opus_packet_parse

pub unsafe extern "C" fn opus_packet_parse(
    data: *const c_uchar,
    len: opus_int32,
    out_toc: *mut c_uchar,
    frames: *mut *const c_uchar,
    size: *mut opus_int16,
    payload_offset: *mut c_int
) -> c_int

Parse an opus packet into one or more frames. Opus_decode will perform this operation internally so most applications do not need to use this function. This function does not copy the frames, the returned pointers are pointers into the input packet. @param [in] data char*: Opus packet to be parsed @param [in] len opus_int32: size of data @param [out] out_toc char*: TOC pointer @param [out] frames char*[48] encapsulated frames @param [out] size opus_int16[48] sizes of the encapsulated frames @param [out] payload_offset int*: returns the position of the payload within the packet (in bytes) @returns number of frames