aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-02-16 23:49:29 -0800
committerChris Robinson <[email protected]>2020-02-16 23:49:29 -0800
commit3156b17057569fb8d3074603d8d8b4ba0dd73c57 (patch)
tree6d031182957c77fc9273ccc1f09236732ef931f3 /al
parent8665f404a5a25525748c7dd59495368c3592fff8 (diff)
Stub out an interface for a callback-driven buffer
Diffstat (limited to 'al')
-rw-r--r--al/buffer.cpp41
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)