Function decode_adpcm_ima_ima4

Source
pub fn decode_adpcm_ima_ima4(
    buf: &[u8; 34],
    state: &mut AdpcmImaState,
    out_samples: &mut [i16; 64],
)
Expand description

Decodes an AIFF-C / QT “ima4” compressed block to 16-bit signed integer samples.

buf should contain 2 header bytes (predictor and step index) and 32 bytes of 4-bit samples.

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 64 decoded samples to out_samples.