aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-29 23:57:07 -0800
committerChris Robinson <[email protected]>2010-11-29 23:57:07 -0800
commit8e43b1fe04d18e8736d16acb75b4d233de235684 (patch)
treeaa4ca7f688c8a7bceb9c0eae68bc50b9c01556c8
parent04df919a1c33f700740630199d5f5d80d0466177 (diff)
Let the storable format enum values share the input format enum values where they overlap
-rw-r--r--OpenAL32/Include/alBuffer.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h
index 904f2e4a..2a9bd3e1 100644
--- a/OpenAL32/Include/alBuffer.h
+++ b/OpenAL32/Include/alBuffer.h
@@ -43,18 +43,18 @@ static __inline ALuint FrameSizeFromSrcFmt(enum SrcFmtChannels chans,
/* Storable formats */
enum FmtType {
- FmtUByte,
- FmtShort,
- FmtFloat,
+ FmtUByte = SrcFmtUByte,
+ FmtShort = SrcFmtShort,
+ FmtFloat = SrcFmtFloat,
};
enum FmtChannels {
- FmtMono,
- FmtStereo,
- FmtRear,
- FmtQuad,
- FmtX51,
- FmtX61,
- FmtX71,
+ FmtMono = SrcFmtMono,
+ FmtStereo = SrcFmtStereo,
+ FmtRear = SrcFmtRear,
+ FmtQuad = SrcFmtQuad,
+ FmtX51 = SrcFmtX51,
+ FmtX61 = SrcFmtX61,
+ FmtX71 = SrcFmtX71,
};
ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType *type);