aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-04 17:45:46 -0700
committerChris Robinson <[email protected]>2019-08-04 17:45:46 -0700
commit3bc9490fd2861bdb28951bae5af37500e93de7ad (patch)
treeeb7a29032786598cdd533b006789af9c3906bf12 /al/buffer.h
parent082622951d99edfe4bfbf66b7af05bf0e8a8f4f1 (diff)
Move some structs to where they're used
Diffstat (limited to 'al/buffer.h')
-rw-r--r--al/buffer.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/al/buffer.h b/al/buffer.h
index e5149bb1..2c01aae2 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -63,23 +63,6 @@ enum FmtChannels : unsigned char {
};
#define MAX_INPUT_CHANNELS (8)
-/* DevFmtType traits, providing the type, etc given a DevFmtType. */
-template<FmtType T>
-struct FmtTypeTraits { };
-
-template<>
-struct FmtTypeTraits<FmtUByte> { using Type = ALubyte; };
-template<>
-struct FmtTypeTraits<FmtShort> { using Type = ALshort; };
-template<>
-struct FmtTypeTraits<FmtFloat> { using Type = ALfloat; };
-template<>
-struct FmtTypeTraits<FmtDouble> { using Type = ALdouble; };
-template<>
-struct FmtTypeTraits<FmtMulaw> { using Type = ALubyte; };
-template<>
-struct FmtTypeTraits<FmtAlaw> { using Type = ALubyte; };
-
ALsizei BytesFromFmt(FmtType type);
ALsizei ChannelsFromFmt(FmtChannels chans);