Skip to main content

ima_adpcm_encode

Function ima_adpcm_encode 

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

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