pub fn linear_to_ulaw(sample: i16) -> u8
Encode one linear PCM16 sample as a μ-law byte (ITU-T G.711).