From 33fd1f9efd46c056cd4348e76cd9048b37721c8b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 13 Oct 2019 09:37:07 -0700 Subject: Use better types for some specific sizes --- alc/devformat.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'alc/devformat.h') diff --git a/alc/devformat.h b/alc/devformat.h index e7ff2ec4..402fb8bd 100644 --- a/alc/devformat.h +++ b/alc/devformat.h @@ -1,8 +1,9 @@ #ifndef ALC_DEVFORMAT_H #define ALC_DEVFORMAT_H +#include + #include "AL/al.h" -#include "AL/alc.h" #include "AL/alext.h" #include "inprogext.h" @@ -82,19 +83,19 @@ template struct DevFmtTypeTraits { }; template<> -struct DevFmtTypeTraits { using Type = ALbyte; }; +struct DevFmtTypeTraits { using Type = int8_t; }; template<> -struct DevFmtTypeTraits { using Type = ALubyte; }; +struct DevFmtTypeTraits { using Type = uint8_t; }; template<> -struct DevFmtTypeTraits { using Type = ALshort; }; +struct DevFmtTypeTraits { using Type = int16_t; }; template<> -struct DevFmtTypeTraits { using Type = ALushort; }; +struct DevFmtTypeTraits { using Type = uint16_t; }; template<> -struct DevFmtTypeTraits { using Type = ALint; }; +struct DevFmtTypeTraits { using Type = int32_t; }; template<> -struct DevFmtTypeTraits { using Type = ALuint; }; +struct DevFmtTypeTraits { using Type = uint32_t; }; template<> -struct DevFmtTypeTraits { using Type = ALfloat; }; +struct DevFmtTypeTraits { using Type = float; }; ALuint BytesFromDevFmt(DevFmtType type) noexcept; -- cgit v1.2.3