Skip to main content

adpcm_wav

Function adpcm_wav 

Source
pub fn adpcm_wav(samples: &[i16]) -> Vec<u8> ⓘ
Expand description

samples (mono, SAMPLE_RATE) as an IMA ADPCM WAV file: blocks of BLOCK_BYTES, the last padded with silence, and a fact chunk with the real number of samples, to which pdc trims it, so a looped track loops with no gap.