diff options
author | Chris Robinson <[email protected]> | 2017-02-27 16:11:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-27 16:11:45 -0800 |
commit | a9610b3607e8dd23f731b614c3b0761c38cb36a8 (patch) | |
tree | 6163c30f02668224717e4e055b340962d94b7bc7 /OpenAL32/Include | |
parent | 5c859af24ea44dabbbb31631309bb08a858a523e (diff) |
Use separate enums for the ambisonic channel order and normalization
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 0b467403..23572a90 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -510,12 +510,19 @@ inline ALsizei FrameSizeFromDevFmt(enum DevFmtChannels chans, enum DevFmtType ty 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 */ +enum AmbiLayout { + AmbiLayout_FuMa, /* FuMa channel order */ + AmbiLayout_ACN, /* ACN channel order */ - AmbiFormat_Default = AmbiFormat_ACN_SN3D + AmbiLayout_Default = AmbiLayout_ACN +}; + +enum AmbiNorm { + AmbiNorm_FuMa, /* FuMa normalization */ + AmbiNorm_SN3D, /* SN3D normalization */ + AmbiNorm_N3D, /* N3D normalization */ + + AmbiNorm_Default = AmbiNorm_SN3D }; @@ -635,7 +642,8 @@ struct ALCdevice_struct /* For DevFmtAmbi* output only, specifies the channel order and * normalization. */ - enum AmbiFormat AmbiFmt; + enum AmbiLayout AmbiLayout; + enum AmbiNorm AmbiScale; al_string DeviceName; |