Skip to main content

g711_encode

Function g711_encode 

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

\brief Encode from linear to u-law or A-law. \param s The G.711 context. \param g711_data The G.711 data. \param amp The linear audio buffer. \param len The number of samples to encode. \return The number of G.711 samples produced.