diff options
author | Chris Robinson <[email protected]> | 2021-03-31 05:37:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-03-31 05:37:56 -0700 |
commit | 8793055e666d2019dd48422c2e4ece1d3118e2f7 (patch) | |
tree | b9157843ca82fc9d6a244cef6f5ca4eeec09d9bb /alc/alu.cpp | |
parent | 051d6fb243c3d6843b5f5b24684cc9324cdc1de1 (diff) |
Start an interface for providing UHJ audio
Currently only 2-channel UHJ, which gets treated as stereo.
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 2c0093ed..67bb8ebc 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -791,6 +791,13 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con case FmtBFormat3D: DirectChannels = DirectMode::Off; break; + + /* TODO: UHJ2 should be treated as BFormat2D for panning. */ + case FmtUHJ2: + DirectChannels = DirectMode::Off; + chans = StereoMap; + downmix_gain = 1.0f / 2.0f; + break; } voice->mFlags &= ~(VoiceHasHrtf | VoiceHasNfc); |