implement openal hrtf audio support

- upgrade openal version
        - add support to create openal context with hrtf enabled
        - add option in audio settings for hrtf enablement
        - add static property on Audio class for runtime toggling of hrtf
	- fix bug with left/right and front/back being reversed
This commit is contained in:
envision3d
2023-03-04 20:37:56 -06:00
parent a7c5397641
commit 4ce89f56cc
15 changed files with 476 additions and 245 deletions

View File

@@ -31,6 +31,14 @@ public:
API_FIELD(Attributes="EditorOrder(200), DefaultValue(true), EditorDisplay(\"General\", \"Mute On Focus Loss\")")
bool MuteOnFocusLoss = true;
/// <summary>
/// Enables/disables HRTF audio for in-engine processing of 3d audio.
/// If enabled, the user should be using two-channel/headphones audio output and have all other surround virtualization disabled (Atmos, DTS:X, vendor specific, etc.)
/// Note: this is currently only available with the OpenAL audio backend.
/// </summary>
API_FIELD(Attributes="EditorOrder(300), DefaultValue(true), EditorDisplay(\"Spatial Audio\")")
bool UseHRTFWhenAvailable = true;
public:
/// <summary>
@@ -46,5 +54,6 @@ public:
DESERIALIZE(DisableAudio);
DESERIALIZE(DopplerFactor);
DESERIALIZE(MuteOnFocusLoss);
DESERIALIZE(UseHRTFWhenAvailable);
}
};