dsoal icon indicating copy to clipboard operation
dsoal copied to clipboard

Do I require extra files for HRTF to work?

Open AtomicTEM opened this issue 11 months ago • 6 comments

Would I need to download https://github.com/kosumosu/x3daudio1_7_hrtf for HRTF to function?

AtomicTEM avatar Apr 02 '25 21:04 AtomicTEM

That's unrelated to DSOAL. That's for games that use the XAudio API, while DSOAL is for games that use the DirectSound API and converts the DSound API calls to OpenAL API calls. For DSOAL, OpenAL Soft comes with HRTF support, and should use it automatically if the device is reported to apps as headphones. Though it seems systems don't often do that for whatever reason, and may need a custom alsoft.ini to enable it. Simply creating an alsoft.ini file in the same folder as the game's executable, and add the lines:

[general]
stereo-encoding=hrtf

That should enable HRTF for that game.

kcat avatar Apr 02 '25 21:04 kcat

If that's not enough, Windows speaker might be set to a quad/surround format, so you might also need channels=stereo.

ThreeDeeJay avatar Apr 03 '25 22:04 ThreeDeeJay

If that's not enough, Windows speaker might be set to a quad/surround format, so you might also need channels=stereo.

What if my headphones support 7.1 surround sound? I have Logitech G933 Headphones.

AtomicTEM avatar Apr 04 '25 09:04 AtomicTEM

If it's set to anything but stereo in the Windows playback device speaker configuration then yeah you'll probably need it. Though if it has its own Logitech HRTF so you'll wanna turn that off to use OpenAL Soft's HRTF

ThreeDeeJay avatar Apr 04 '25 13:04 ThreeDeeJay

Can I use it with Dolby Atmos for headphones? Game outputs 5.1 sound, and Dolby/DTS/Sonic handles HRTF, for example

mustang651 avatar May 14 '25 19:05 mustang651

Atmos relies on the system's spatial sound, so unless it fails to detect surround output, it should work. Though you might wanna check out the documentation to set up 7.1.4 so that you also get height. That said, unless you use real Atmos with ceiling speakers/upfiring sound bar, it might be better to just use OpenAL Soft's HRTF because it has a lot more positional accuracy (hundreds if not thousands of "virtual speakers") compared to 12 in 7.1.4 which doesn't even include speakers below the listener AFAIK

ThreeDeeJay avatar May 14 '25 19:05 ThreeDeeJay