aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-31 07:46:38 -0700
committerChris Robinson <[email protected]>2016-07-31 07:46:38 -0700
commit4bcd2fbb2e79419c9b0973b7587df47d20004a5f (patch)
treef2bf8a131fa7e8ef065cb961498d8df3885b4a07 /OpenAL32/Include/alMain.h
parent01af7b432d775fc2eb054fbbd3f131481c636e2b (diff)
Add an option to specify the ambisonic output configuration
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index d07cb589..dff94487 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -463,6 +463,14 @@ inline ALuint FrameSizeFromDevFmt(enum DevFmtChannels chans, enum DevFmtType typ
return ChannelsFromDevFmt(chans) * BytesFromDevFmt(type);
}
+enum AmbiFormat {
+ AmbiFormat_FuMa, /* FuMa channel order and normalization */
+ AmbiFormat_ACN_SN3D, /* ACN channel order and SN3D normalization */
+ AmbiFormat_ACN_N3D, /* ACN channel order and N3D normalization */
+
+ AmbiFormat_Default = AmbiFormat_ACN_SN3D
+};
+
extern const struct EffectList {
const char *name;
@@ -557,6 +565,10 @@ struct ALCdevice_struct
enum DevFmtChannels FmtChans;
enum DevFmtType FmtType;
ALboolean IsHeadphones;
+ /* For DevFmtAmbi* output only, specifies the channel order and
+ * normalization.
+ */
+ enum AmbiFormat AmbiFmt;
al_string DeviceName;