diff options
author | Chris Robinson <[email protected]> | 2019-08-04 17:45:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-04 17:45:46 -0700 |
commit | 3bc9490fd2861bdb28951bae5af37500e93de7ad (patch) | |
tree | eb7a29032786598cdd533b006789af9c3906bf12 /al | |
parent | 082622951d99edfe4bfbf66b7af05bf0e8a8f4f1 (diff) |
Move some structs to where they're used
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); |