diff options
author | Chris Robinson <[email protected]> | 2022-11-03 19:42:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-11-03 19:42:08 -0700 |
commit | e9ad8571ba93dd6631a9c05a05a28ede95728d9e (patch) | |
tree | 391684e8c815ccbd72db91c19c630bcb4549bf29 /alc/context.cpp | |
parent | 551a18a15c66440e3a5478c8b3d6b973f36c33d3 (diff) |
Add preliminary support for 7.1.4 output modes
I don't know how different sound APIs handle 7.1.4 ("Atmos" or "Auro3D")
output, but currently it simply specifies the additional channels with the
height channel labels. This isn't likely how it works for a virtualized channel
bed, for playing over other with-height configurations (7.1.2, 5.1.4, etc), but
this should be an okay start.
Diffstat (limited to 'alc/context.cpp')
-rw-r--r-- | alc/context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/context.cpp b/alc/context.cpp index a892bb6d..07ae6434 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -535,6 +535,10 @@ unsigned long ALCcontext::eax_detect_speaker_configuration() const case DevFmtX51: return SPEAKERS_5; case DevFmtX61: return SPEAKERS_6; case DevFmtX71: return SPEAKERS_7; + /* 7.1.4 is compatible with 7.1. This could instead be HEADPHONES to + * suggest with-height surround sound (like HRTF). + */ + case DevFmtX714: return SPEAKERS_7; /* 3D7.1 is only compatible with 5.1. This could instead be HEADPHONES to * suggest full-sphere surround sound (like HRTF). */ |