aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alBuffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-27 15:33:33 -0800
committerChris Robinson <[email protected]>2010-11-27 15:33:33 -0800
commit9495cf71fd909fbbe6381c4d7d15cf69de1fded4 (patch)
treef681167c9a86effb556a97a9a447e49243080dd7 /OpenAL32/Include/alBuffer.h
parent4d0f70439c18f1034d1375a331bbd28e1f1adeff (diff)
Decompose input buffer formats and use it when converting uncompressed data
Diffstat (limited to 'OpenAL32/Include/alBuffer.h')
-rw-r--r--OpenAL32/Include/alBuffer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h
index f47685ce..ff247b4f 100644
--- a/OpenAL32/Include/alBuffer.h
+++ b/OpenAL32/Include/alBuffer.h
@@ -7,6 +7,29 @@
extern "C" {
#endif
+/* Input formats (some are currently theoretical) */
+enum SrcFmtType {
+ SrcFmtByte, /* AL_BYTE */
+ SrcFmtUByte, /* AL_UNSIGNED_BYTE */
+ SrcFmtShort, /* AL_SHORT */
+ SrcFmtUShort, /* AL_UNSIGNED_SHORT */
+ SrcFmtFloat, /* AL_FLOAT */
+ SrcFmtDouble, /* AL_DOUBLE */
+};
+enum SrcFmtChannels {
+ SrcFmtMono, /* AL_MONO */
+ SrcFmtStereo, /* AL_STEREO */
+ SrcFmtRear, /* AL_REAR */
+ SrcFmtQuad, /* AL_QUAD */
+ SrcFmtX51, /* AL_5POINT1 (WFX order) */
+ SrcFmtX61, /* AL_6POINT1 (WFX order) */
+ SrcFmtX71, /* AL_7POINT1 (WFX order) */
+};
+
+void DecomposeInputFormat(ALenum format, enum SrcFmtType *type,
+ enum SrcFmtChannels *order);
+
+/* Storable formats */
enum FmtType {
FmtUByte,
FmtShort,