pub fn linear_to_alaw(sample: i16) -> u8
Encode one linear PCM16 sample as an A-law byte (ITU-T G.711).