lovr.audio.setHRTF
EditSets an HRTF to use for binaural audio spatialization. The HRTF should be provided as a SOFA file (Spatially Oriented File Format for Acoustics).
Without an HRTF, LÖVR will use simple panning for spatialization, which adjusts the volume level of the left/right audio channels based on the source's location. Binaural audio spatialization with an HRTF sounds more realistic, at a small performance cost.
This is a slow function, so it should be called during startup or on a thread.
Arguments
| Name | Type | Description |
| file | string | Blob | A filename or Blob containing a SOFA file to load. |
Returns
Nothing
Clears any active HRTF, disabling binaural spatialization.
Arguments
None
Returns
Nothing
Notes
A default HRTF can be found here.