diff options
author | Chris Robinson <[email protected]> | 2011-03-16 13:57:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-03-16 13:57:00 -0700 |
commit | be37f10feded3ed626194ed626d62bb23e010de4 (patch) | |
tree | d0380d6914a3f2cc4005b6da34586a2d9c37a248 /OpenAL32/alBuffer.c | |
parent | a87f651b4df2d670c7d67fdccb9bfa291dbed890 (diff) |
Add alIsBufferFormatSupportedSOFT
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 17 |
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) { |