Implement HRTF support
jdm opened this issue · 5 comments
https://webaudio.github.io/web-audio-api/#Spatialization-hrtf-panning
Line 308 in 4250116
It may be possible to reuse code from some existing rust implementations of HRTF:
https://github.com/mrDIMAS/rg3d-sound/blob/master/src/hrtf.rs
We may end up using one of the binaries from https://github.com/mrDIMAS/hrir_sphere_builder/tree/master/hrtf_base/IRCAM as the database for the underlying impulse/elevation data.
There is reference code in Firefox; see all of the files named HRTF* in https://searchfox.org/mozilla-central/source/dom/media/webaudio/blink.
Me and my team will be taking on this issue with assistance from @jdm
We will no longer be taking this issue due to time constraints for our project. If anyone else would like to work on implementing this, you are free to.