aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-04 22:44:30 -0800
committerChris Robinson <[email protected]>2014-03-04 22:44:30 -0800
commita1c440bd09d6b0bec36ef84dc474306ce6171b26 (patch)
treeb0666578ef6110d6a956759445654c5adb054af1 /OpenAL32/Include
parentf3a87d72b266640a706ddd3234aa4313b53cabce (diff)
Add an extension to support MSADPCM buffer formats
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alBuffer.h1
-rw-r--r--OpenAL32/Include/alMain.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h
index be426df2..10359d9d 100644
--- a/OpenAL32/Include/alBuffer.h
+++ b/OpenAL32/Include/alBuffer.h
@@ -22,6 +22,7 @@ enum UserFmtType {
UserFmtMulaw,
UserFmtAlaw,
UserFmtIMA4,
+ UserFmtMSADPCM,
};
enum UserFmtChannels {
UserFmtMono = AL_MONO_SOFT,
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 7de52260..5f74eab0 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -246,6 +246,12 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname,
#define AL_PACK_BLOCK_ALIGNMENT_SOFT 0x200D
#endif
+#ifndef AL_SOFT_MSADPCM
+#define AL_SOFT_MSADPCM 1
+#define AL_FORMAT_MONO_MSADPCM_SOFT 0x1302
+#define AL_FORMAT_STEREO_MSADPCM_SOFT 0x1303
+#endif
+
#ifdef IN_IDE_PARSER
/* KDevelop's parser doesn't recognize the C99-standard restrict keyword, but