Skip to main content

i16_to_pcm16_le

Function i16_to_pcm16_le 

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

Encode samples as little-endian PCM16 bytes (the Live wire format).

assert_eq!(i16_to_pcm16_le(&[1, -1]), [1, 0, 0xff, 0xff]);