ope_encoder_get_page

Function ope_encoder_get_page 

Source
pub unsafe extern "C" fn ope_encoder_get_page(
    enc: *mut OggOpusEnc,
    page: *mut *mut c_uchar,
    len: *mut opus_int32,
    flush: c_int,
) -> c_int
Expand description

Get the next page from the stream (only if using ope_encoder_create_pull()).

§Arguments

  • enc [in,out] - Encoder
  • page [out] - Next available encoded page
  • len [out] - Size (in bytes) of the page returned
  • flush - If non-zero, forces a flush of the page (if any data avaiable)

§Returns

1 if there is a page available, 0 if not.