mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-20 04:14:15 +00:00
hrtf working example
working example of hrtf set the pref usehrtf to true to test For now any mhr file that is in the game directory can be used, just run once to get the index of that mhr and pass that index in to $pref::SFX::hrtfProfile
This commit is contained in:
parent
345ce3f1d3
commit
bcde183786
3 changed files with 32 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ S32 SFXDevice::smUpdateInterval = SFXInternal::DEFAULT_UPDATE_INTERVAL;
|
|||
S32 SFXDevice::smDeviceFrequency = 44100;
|
||||
S32 SFXDevice::smMaxSendsPerSource = 4;
|
||||
S32 SFXDevice::smMaxEffectSlots = 4;
|
||||
S32 SFXDevice::smDeviceHRTFProfile = -1;
|
||||
S8 SFXDevice::smDeviceBitrate = 16;
|
||||
bool SFXDevice::smDeviceHRTF = false;
|
||||
|
||||
|
|
@ -51,6 +52,11 @@ void SFXDevice::initConsole()
|
|||
"The device uses hrtf.\n"
|
||||
"@ingroup SFX\n");
|
||||
|
||||
Con::addVariable("$pref::SFX::hrtfProfile", TypeS32, &smDeviceHRTFProfile,
|
||||
"Index of the HRTF profile to use. -1 = driver default. "
|
||||
"Use sfxGetHRTFProfileCount/sfxGetHRTFProfileName to enumerate available profiles.\n"
|
||||
"@ingroup SFX\n");
|
||||
|
||||
Con::addVariable("$pref::SFX::updateInterval", TypeS32, &smUpdateInterval,
|
||||
"The update interval.\n"
|
||||
"@ingroup SFX\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue