ThreeDeeJay / HRIR-Batch-Converters

Scripts to convert HRTF files to different formats
13 stars 0 forks source link

Any plans to make X3DAudio SCUT_KEMAR DEF? #1

Open celloh123 opened 1 year ago

celloh123 commented 1 year ago

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

ThreeDeeJay commented 1 year ago

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.