speex_encode_int

Function speex_encode_int 

Source
pub unsafe extern "C" fn speex_encode_int(
    state: *mut c_void,
    in_: *mut spx_int16_t,
    bits: *mut SpeexBits,
) -> c_int
Expand description

Uses an existing encoder state to encode one frame of speech pointed to by “in”. The encoded bit-stream is saved in “bits”. @param state Encoder state @param in Frame that will be encoded with a +-2^15 range @param bits Bit-stream where the data will be written @return 0 if frame needs not be transmitted (DTX only), 1 otherwise