Function ope_encoder_create_callbacks

Source
pub unsafe extern "C" fn ope_encoder_create_callbacks(
    callbacks: *const OpusEncCallbacks,
    user_data: *mut c_void,
    comments: *mut OggOpusComments,
    rate: opus_int32,
    channels: c_int,
    family: c_int,
    error: *mut c_int,
) -> *mut OggOpusEnc
Expand description

Create a new OggOpus stream to be handled using callbacks

§Arguments

  • callbacks - Callback functions
  • user_data - Pointer to be associated with the stream and passed to the callbacks
  • comments - Comments associated with the stream
  • rate - Input sampling rate (48 kHz is faster)
  • channels - Number of channels
  • family - Mapping family (0 for mono/stereo, 1 for surround)
  • error [out] - Error code (NULL if no error is to be returned)

§Returns

Newly-created encoder.