diff options
Diffstat (limited to 'al')
-rw-r--r-- | al/buffer.h | 17 |
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); |