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

mp3_ms_stereo

Function mp3_ms_stereo 

Source
pub fn mp3_ms_stereo(mid: &mut [i32], side: &mut [i32])
Expand description

Apply MS (mid-side) stereo processing

Converts mid/side channels to left/right: L = (M + S) / sqrt(2) ~ (M + S) * 0.7071 R = (M - S) / sqrt(2) ~ (M - S) * 0.7071

Uses integer arithmetic: multiply by 46341 and shift right 16 (0.7071 * 65536 ~ 46341)