aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 400db6a8..30402ee1 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -638,6 +638,23 @@ AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer,
ProcessContext(Context);
}
+AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format)
+{
+ enum FmtChannels DstChannels;
+ enum FmtType DstType;
+ ALCcontext *Context;
+ ALboolean ret;
+
+ Context = GetContextSuspended();
+ if(!Context) return AL_FALSE;
+
+ ret = DecomposeFormat(format, &DstChannels, &DstType);
+
+ ProcessContext(Context);
+
+ return ret;
+}
+
AL_API void AL_APIENTRY alBufferf(ALuint buffer, ALenum eParam, ALfloat flValue)
{