SOFA Spatializer as a Native Plugin for Unity
SOFAlizer is a SOFA-based audio spatializer for Unity. It is a Unity native plugin. It loads sets of spatial filters so-called HRTFs stored in SOFA files and renders spatial audio based on a selected HRTF set. The output is a binaural signal intended to be listened to via headphones.
Currently only Windows is supported. Tested with Unity 2021.2.8f1, compiled with MS VS 2019.
Compile SOFAlizer DLL:
Start the scene:
hrtfX.sofa
with X
from 0 to 49.On "Run" of the scene, SOFAlizer:
hrtfX.sofa
with X
being from 0 to 49. These files must be located in the root directory of this project. The HRTFs must be stored using the SOFA convention "SimpleFreeFieldHRIR".Scene parameters:
Enjoy!
Contributions from others (multiple instances, crashes, bug fixes)
Bug fix for crash when loading/unloading the plugin.
First release