bytes_to_i16

Function bytes_to_i16 

Source
pub fn bytes_to_i16(data: &[u8]) -> Option<&[i16]>
Expand description

Convert raw bytes to i16 PCM samples (zero-copy via bytemuck).

Returns None if the byte slice length is not a multiple of 2.