natiny_audio_set_hrtf
void natiny_audio_set_hrtf(bool enabled);
Selects binaural or stereo rendering for spatial sources.
Parameters
| Name | Type | Description |
|---|---|---|
enabled |
bool |
true for binaural HRTF, false for stereo decoding |
Example
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.