aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-21 04:15:08 -0700
committerChris Robinson <[email protected]>2017-04-21 04:15:08 -0700
commitb59359f80f45512210f37b8a8cd4c250d78dd37d (patch)
tree0a88f20ce7b0baa098991276f9b29271176a7bbe /OpenAL32/Include
parent26b49c54afb9868115e495098ce69f2d2487c932 (diff)
Add a method to enumerate resamplers
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h13
-rw-r--r--OpenAL32/Include/alu.h2
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 34635773..7f5c0aa8 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -139,6 +139,19 @@ AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format);
#endif
#endif
+#ifndef AL_SOFT_source_resampler
+#define AL_SOFT_source_resampler
+#define AL_NUM_RESAMPLERS_SOFT 0x7fff0000
+#define AL_DEFAULT_RESAMPLER_SOFT 0x7fff0001
+#define AL_SOURCE_RESAMPLER_SOFT 0x7fff0003
+#define AL_RESAMPLER_NAME_SOFT 0x7fff0004
+
+typedef const ALchar* (AL_APIENTRY*LPALGETSTRINGISOFT)(ALenum pname, ALsizei index);
+#ifdef AL_ALEXT_PROTOTYPES
+AL_API const ALchar* AL_APIENTRY alGetStringiSOFT(ALenum pname, ALsizei index);
+#endif
+#endif
+
#if defined(_WIN64)
#define SZFMT "%I64u"
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 071ef3d2..c6706bad 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -45,6 +45,8 @@ enum Resampler {
LinearResampler,
FIR4Resampler,
BSincResampler,
+
+ ResamplerMax = BSincResampler
};
extern enum Resampler ResamplerDefault;