diff options
author | Chris Robinson <[email protected]> | 2020-02-16 23:49:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-16 23:49:29 -0800 |
commit | 3156b17057569fb8d3074603d8d8b4ba0dd73c57 (patch) | |
tree | 6d031182957c77fc9273ccc1f09236732ef931f3 /al | |
parent | 8665f404a5a25525748c7dd59495368c3592fff8 (diff) |
Stub out an interface for a callback-driven buffer
Diffstat (limited to 'al')
-rw-r--r-- | al/buffer.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp index de8abeb6..c7acb9aa 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -1376,6 +1376,47 @@ START_API_FUNC END_API_FUNC +AL_API void AL_APIENTRY alBufferCallbackSOFT(ALuint /*buffer*/, ALenum /*format*/, ALsizei /*freq*/, LPALBUFFERCALLBACKTYPESOFT /*callback*/, ALvoid* /*userptr*/, ALbitfieldSOFT /*flags*/) +START_API_FUNC +{ + ContextRef context{GetContextRef()}; + if UNLIKELY(!context) return; + + context->setError(AL_INVALID_OPERATION, "alBufferCallbackSOFT not functional"); +} +END_API_FUNC + +AL_API void AL_APIENTRY alGetBufferPtrSOFT(ALuint /*buffer*/, ALenum /*param*/, ALvoid** /*value*/) +START_API_FUNC +{ + ContextRef context{GetContextRef()}; + if UNLIKELY(!context) return; + + context->setError(AL_INVALID_OPERATION, "alGetBufferPtrSOFT not functional"); +} +END_API_FUNC + +AL_API void AL_APIENTRY alGetBuffer3PtrSOFT(ALuint /*buffer*/, ALenum /*param*/, ALvoid** /*value1*/, ALvoid** /*value2*/, ALvoid** /*value3*/) +START_API_FUNC +{ + ContextRef context{GetContextRef()}; + if UNLIKELY(!context) return; + + context->setError(AL_INVALID_OPERATION, "alGetBuffer3PtrSOFT not functional"); +} +END_API_FUNC + +AL_API void AL_APIENTRY alGetBufferPtrvSOFT(ALuint /*buffer*/, ALenum /*param*/, ALvoid** /*values*/) +START_API_FUNC +{ + ContextRef context{GetContextRef()}; + if UNLIKELY(!context) return; + + context->setError(AL_INVALID_OPERATION, "alGetBufferPtrvSOFT not functional"); +} +END_API_FUNC + + ALuint BytesFromFmt(FmtType type) noexcept { switch(type) |