Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for (custom) HRTF #303

Open
returntoreality opened this issue Jan 31, 2023 · 3 comments
Open

Add support for (custom) HRTF #303

returntoreality opened this issue Jan 31, 2023 · 3 comments

Comments

@returntoreality
Copy link

Having a HRTF would allow more accurate hearing of the sound origins. OpenAL-soft allows supplying a custom HRTF to fine tune the HRTF to your own head.

This might be related to #42.

@flibitijibibo
Copy link
Member

flibitijibibo commented Jan 31, 2023

@ThreeDeeJay
Copy link

Does hrtfapo support custom HRTF though? From what I've seen, it just loads some binary/encrypted HRTF files that sound awful (I think it's what Windows Sonic uses) from the system folder and I don't know if they can be edited/replaced (maybe buying and selecting Dolby Atmos for Headphones, its personalized HRTF beta or DTS Headphone:X)

apparently XAudio 2 could be capable of 3D audio.
I just found out that the HRTF files I mentioned on my previous message aren't just Sonic's but also XAudio 2 HRTF XAPO's. If I rename "C:\Windows\System32\DefaultHrtfs.bin", Spatial audio sample prints an error and Managed XAudio2 Hrtf Test as well as Spatial Sound tests here refuse to run.
kcat/openal-soft#586 (comment)

Also, didn't FAudio already support OpenAL Soft output at some point or did it replace it in FNA?
And would you happen to know the reason why Unreal Engine ~4.24(?) onwards would break X3DAudio HRTF? It allowed adding 3D HRTF on older builds by replacing x3daudio1_7.dll, but apparently there was a big change and I noticed FAudio was eventually implemented, unless there's a way to bring back X3DAudio in newer UE builds or I'm missing something 🤔

@mirh
Copy link

mirh commented Feb 3, 2024

FAudioDevice wasn't eventually implemented, it was always there to begin with (hell, it was there 15 years ago). With the same token the libsceaudio3d/libAudio3d backend should have something to do with Aureal, lol.
And then, UE4 has the source available.. it should be a pretty mechanical process to bisect the culprit.

Also, didn't FAudio already support OpenAL Soft output at some point or did it replace it in FNA?

Never, you are perhaps thinking of wine implementing xaudio2_7 on top of openal before 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants