diff options
author | Chris Robinson <[email protected]> | 2019-06-30 17:41:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-30 17:41:43 -0700 |
commit | c21b7e2461739e8b162f736bd9dfc6df4b48a667 (patch) | |
tree | 804eca3121a33eaf12f927f19748c4a657361f19 /OpenAL32/Include/alMain.h | |
parent | f45864223767ac6543e8f432384dcf984d325eea (diff) |
Use explicit storage types for some enums
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 016cc535..3008aeca 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -124,7 +124,7 @@ enum Channel { /* Device formats */ -enum DevFmtType { +enum DevFmtType : ALenum { DevFmtByte = ALC_BYTE_SOFT, DevFmtUByte = ALC_UNSIGNED_BYTE_SOFT, DevFmtShort = ALC_SHORT_SOFT, @@ -135,7 +135,7 @@ enum DevFmtType { DevFmtTypeDefault = DevFmtFloat }; -enum DevFmtChannels { +enum DevFmtChannels : ALenum { DevFmtMono = ALC_MONO_SOFT, DevFmtStereo = ALC_STEREO_SOFT, DevFmtQuad = ALC_QUAD_SOFT, @@ -145,7 +145,7 @@ enum DevFmtChannels { DevFmtAmbi3D = ALC_BFORMAT3D_SOFT, /* Similar to 5.1, except using rear channels instead of sides */ - DevFmtX51Rear = 0x80000000, + DevFmtX51Rear = 0x70000000, DevFmtChannelsDefault = DevFmtStereo }; |