⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

convert_u8_to_s16

Function convert_u8_to_s16 

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

Convert unsigned 8-bit PCM to signed 16-bit PCM

U8 samples are centered at 128 (silence). This function shifts to signed and scales to 16-bit range.