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

convert_s24_to_s16

Function convert_s24_to_s16 

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

Convert signed 24-bit little-endian PCM to signed 16-bit PCM

Reads packed 3-byte samples and truncates to 16-bit by discarding the least significant 8 bits.