diff options
author | Chris Robinson <[email protected]> | 2020-04-23 04:57:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-23 04:57:04 -0700 |
commit | aff410fa6df45d37c7d9fe4e0b33fc125c3f550b (patch) | |
tree | 2144bd2fd52dc96035bf808352812804045a3133 /alc/alc.cpp | |
parent | 2deb5e47d1f72f211961289e6fa92ae6c89184fb (diff) |
Avoid using some more AL types
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 291bb014..ef534182 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1317,13 +1317,13 @@ ALuint BytesFromDevFmt(DevFmtType type) noexcept { switch(type) { - case DevFmtByte: return sizeof(ALCbyte); - case DevFmtUByte: return sizeof(ALCubyte); - case DevFmtShort: return sizeof(ALCshort); - case DevFmtUShort: return sizeof(ALCushort); - case DevFmtInt: return sizeof(ALCint); - case DevFmtUInt: return sizeof(ALCuint); - case DevFmtFloat: return sizeof(ALCfloat); + case DevFmtByte: return sizeof(int8_t); + case DevFmtUByte: return sizeof(uint8_t); + case DevFmtShort: return sizeof(int16_t); + case DevFmtUShort: return sizeof(uint16_t); + case DevFmtInt: return sizeof(int32_t); + case DevFmtUInt: return sizeof(uint32_t); + case DevFmtFloat: return sizeof(float); } return 0; } |