icculus / mojoAL

An SDL2-based implementation of OpenAL in a single C file.
https://icculus.org/mojoAL/
zlib License
154 stars 20 forks source link

ALC_EXT_EFX and ALC_SOFT_HRTF #5

Open ompadu opened 2 years ago

ompadu commented 2 years ago

Hi,

Is there any chance of these two extensions getting implemented?

Thank you

ericoporto commented 2 years ago

About HRTF, found an interesting example code that rotates a sound around the listener, that helped me understand the effect.

I think for HRTF in particular it would be best to split it in a separate issue which is support HRTF since OpenAL is intended for 3D positional audio, it's a relevant feature. I somewhat understand the math involved, but not really much how it would be implemented in this project in particular, since it's a single c file I don't understand much how to organize this functionality in the code itself - perhaps this would be a different codepath in the existing non-hrtf positional audio?

(like, here: https://github.com/icculus/mojoAL/blob/8e392e2b225a0bc4e70a2ccda0aaab210511e93c/mojoal.c#L1750 )