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

Any plans to make X3DAudio SCUT_KEMAR DEF? #1

Open
celloh123 opened this issue Jun 13, 2023 · 1 comment
Open

Any plans to make X3DAudio SCUT_KEMAR DEF? #1

celloh123 opened this issue Jun 13, 2023 · 1 comment

Comments

@celloh123
Copy link

Is it possible to generate def of scut kemar for use with x3daudio?

@ThreeDeeJay
Copy link
Owner

ThreeDeeJay commented Jun 13, 2023

There's a SCUT KEMAR DEF for the newer OpenAL Soft makemhr that supports SOFA, but since X3DAudio HRTF is based on an old version without SOFA support, someone would need to get their hands on the raw IR WAV files (or extract them from the SOFA) of each position and map them according to the old DEF format.
I did something like that for SADIE and to be honest, it was extremely tedious to do by hand. I think there's a tool -forgot the name- that can help automate the WAV to DEF process but it's only available on linux, which I'm not really familiar with.
So I guess the answer is no, unless I can figure out how to convert WAV to DEF programmatically.

Anyhow, an alternative to consider is just using a different KEMAR HRTF that's available for X3DAudio HRTF like the default (MIT KEMAR) or SADIE II D2 (KEMAR).
I know you might want to take advantage of SCUT KEMAR's multi-field HRTF, but I don't even know if that's supported by X3DAudio HRTF 🤔

By the way, I've been meaning to push an update to this repo that updates some scripts, like the one to convert DEF to MHR, which now uses a custom makehrtf with unlocked sample rates so that it can generate much lower frequencies (edit line 9 of the .bat: SET Frequencies= with comma-separated frequencies since X3DAudio HRTF doesn't support realtime resampling so you gotta check the log in case a game uses a sound effect without a matching sample rate MHR)
Convert to X3DAudio HRTF MHR.zip
If it doesn't work, make sure there's no special characters like parentheses in the path to the script's folder.

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

No branches or pull requests

2 participants