pub fn encode_adpcm_ima_ima4(
samples: &[i16; 64],
state: &mut AdpcmImaState,
out_buf: &mut [u8; 34],
)
Expand description
Encodes 16-bit signed integer samples to an AIFF-C / QT “ima4” compressed block.
The state
parameter should be initialized to zero for the first call and subsequent calls
should pass in the state values from the previous call.
This function outputs 34 encoded bytes to out_buf
: 2 header bytes (predictor and step index)
and 32 bytes of 4-bit samples.