Skip to main content

binaural_render

Function binaural_render 

Source
pub fn binaural_render(
    mono: &[f32],
    source: [f32; 3],
    listener_yaw: f32,
    sample_rate: f32,
) -> (Vec<f32>, Vec<f32>)
Expand description

Render a mono source at source (world space) into a binaural pair.

Pipeline: binaural_from_position (active HrtfProfile) → synthesize_hrirconvolve_fir the mono signal with each ear’s HRIR. Returns (left, right), each of length mono.len() + taps - 1 (taps = 64).