speex_encoder_init

Function speex_encoder_init 

Source
pub unsafe extern "C" fn speex_encoder_init(
    mode: *const SpeexMode,
) -> *mut c_void
Expand description

Returns a handle to a newly created Speex encoder state structure. For now, the “mode” argument can be &nb_mode or &wb_mode . In the future, more modes may be added. Note that for now if you have more than one channels to encode, you need one state per channel.

@param mode The mode to use (either speex_nb_mode or speex_wb.mode) @return A newly created encoder state or NULL if state allocation fails