Skip to main content

to_i16

Function to_i16 

Source
pub fn to_i16(samples: &[f32]) -> Vec<i16>
Expand description

Convert [-1, 1) float samples to 16-bit with rounding and clipping.