Skip to main content

Module hrtf

Module hrtf 

Source
Expand description

HRTF — analytic + KemarLite embedded tables (zero-heap hot path).

Full measured KEMAR datasets are optional cold assets; default hot path uses KemarLite (8-azimuth ITD/ILD samples) with analytic fallback.

Structs§

BinauralGains
Binaural staging gains + ITD for stereo worklet.

Enums§

HrtfProfile
HRTF synthesis profile (hot path).

Functions§

binaural_analytic
Analytic binaural gains — azimuth ∈ [-π, π], elevation ∈ [-π/2, π/2].
binaural_from_position
Dispatch binaural model from active HrtfProfile.
binaural_kemar_lite
KemarLite binaural — interpolated embedded ITD/ILD tables.
binaural_render
Render a mono source at source (world space) into a binaural pair.
convolve_fir
Direct linear (FIR) convolution: y[i] = Σ_j signal[j]·h[i-j].
head_relative_position
Rotate source position into head frame (listener at origin, yaw around Y).
hrtf_profile
room_damp_from_manifold
Manifold w biases room absorption (higher w → softer highs).
set_hrtf_profile
synthesize_hrir
Synthesize left/right HRIRs from gains.