natiny.audio.set_hrtf

Lua
natiny.audio.set_hrtf(enabled)

Selects binaural or stereo rendering for spatial sources.

Parameters

Name Type Description
enabled boolean true for binaural HRTF, false for stereo decoding

Example

Lua
natiny.audio.set_hrtf(false)

Notes

  • HRTF is enabled by default and is intended for headphone output.
  • Disabling it decodes the spatial soundfield to stereo without binaural convolution. Non-spatial sources are unaffected.
  • This is a global setting and has no getter.