nx_audio_spatial.nx
buildroot/runtime/nx_audio_spatial.nx
about
nx_audio_spatial.nx -- SOVEREIGN AUDIO ENGINE rung R6: 3D positional audio.
Places a mono source at (sx,sy) relative to a listener at the origin: distance
drives a linear rolloff attenuation over max_dist, horizontal offset drives the
L/R balance. This is what makes game audio spatial (footsteps to your left,
etc.). Includes a sovereign integer sqrt (Newton's method). Reuses ae_clamp.
license_tier: ORIGINAL.
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_audio_mix.nxnx_isqrt.nx
imported by: nx_audio_spatial_test.nx
structs
| none |
consts
| none |
functions
| 14 | func spatial_place(mono: *i64, n: i64, sx: i64, sy: i64, max_dist: i64, outL: *i64, outR: *i64) -> i64 |