aboutsummaryrefslogtreecommitdiffstats
path: root/alc/devformat.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/devformat.h')
-rw-r--r--alc/devformat.h17
1 files changed, 9 insertions, 8 deletions
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 <cstdint>
+
#include "AL/al.h"
-#include "AL/alc.h"
#include "AL/alext.h"
#include "inprogext.h"
@@ -82,19 +83,19 @@ template<DevFmtType T>
struct DevFmtTypeTraits { };
template<>
-struct DevFmtTypeTraits<DevFmtByte> { using Type = ALbyte; };
+struct DevFmtTypeTraits<DevFmtByte> { using Type = int8_t; };
template<>
-struct DevFmtTypeTraits<DevFmtUByte> { using Type = ALubyte; };
+struct DevFmtTypeTraits<DevFmtUByte> { using Type = uint8_t; };
template<>
-struct DevFmtTypeTraits<DevFmtShort> { using Type = ALshort; };
+struct DevFmtTypeTraits<DevFmtShort> { using Type = int16_t; };
template<>
-struct DevFmtTypeTraits<DevFmtUShort> { using Type = ALushort; };
+struct DevFmtTypeTraits<DevFmtUShort> { using Type = uint16_t; };
template<>
-struct DevFmtTypeTraits<DevFmtInt> { using Type = ALint; };
+struct DevFmtTypeTraits<DevFmtInt> { using Type = int32_t; };
template<>
-struct DevFmtTypeTraits<DevFmtUInt> { using Type = ALuint; };
+struct DevFmtTypeTraits<DevFmtUInt> { using Type = uint32_t; };
template<>
-struct DevFmtTypeTraits<DevFmtFloat> { using Type = ALfloat; };
+struct DevFmtTypeTraits<DevFmtFloat> { using Type = float; };
ALuint BytesFromDevFmt(DevFmtType type) noexcept;