pub fn samples_to_differences(buffer: &mut [u8])
Derive over all values in order to produce differences to the previous value.