Skip to main content

g726_encode

Function g726_encode 

Source
pub unsafe extern "C" fn g726_encode(
    s: *mut g726_state_t,
    g726_data: *mut u8,
    amp: *const i16,
    len: c_int,
) -> c_int
Expand description

Encode a buffer of linear PCM data to G.726 ADPCM. \param s The G.726 context. \param g726_data The G.726 data produced. \param amp The audio sample buffer. \param len The number of samples in the buffer. \return The number of bytes of G.726 data produced.