From 49b39a88155117a6bf73a5531d3da4402b45bad7 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 24 Nov 2009 12:39:39 +0100 Subject: [PATCH] openal32: Add alBufferDataStatic. --- dlls/openal32/openal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index 3d2bb00fd1c..04d0d35ff8b 100644 --- a/dlls/openal32/openal.c +++ b/dlls/openal32/openal.c @@ -44,6 +44,7 @@ typedef struct wine_ALCcontext { ALboolean been_current; + ALvoid (AL_APIENTRY*alBufferDataStatic)(const ALuint bid, ALenum format, const ALvoid* data, ALsizei size, ALsizei freq); ALvoid (AL_APIENTRY*alGenFilters)(ALsizei n, ALuint* filters); ALvoid (AL_APIENTRY*alDeleteFilters)(ALsizei n, const ALuint* filters); ALboolean (AL_APIENTRY*alIsFilter)(ALuint fid); @@ -190,6 +191,7 @@ ALCboolean CDECL wine_alcMakeContextCurrent(ALCcontext *context) CurrentCtx->been_current = AL_TRUE; #define LOADFUNC(x) CurrentCtx->x = alGetProcAddress(#x) + LOADFUNC(alBufferDataStatic); LOADFUNC(alGenFilters); LOADFUNC(alDeleteFilters); LOADFUNC(alIsFilter); @@ -620,6 +622,11 @@ ALvoid CDECL wine_alBufferData(ALuint bid, ALenum format, const ALvoid* data, AL alBufferData(bid, format, data, size, freq); } +ALvoid CDECL wine_alBufferDataStatic(const ALuint bid, ALenum format, const ALvoid* data, ALsizei size, ALsizei freq) +{ + CurrentCtx->alBufferDataStatic(bid, format, data, size, freq); +} + ALvoid CDECL wine_alGetBufferf(ALuint bid, ALenum param, ALfloat* value) { alGetBufferf(bid, param, value); @@ -1008,6 +1015,7 @@ static const struct FuncList ALFuncs[] = { { "alDeleteBuffers", wine_alDeleteBuffers }, { "alIsBuffer", wine_alIsBuffer }, { "alBufferData", wine_alBufferData }, + { "alBufferDataStatic", wine_alBufferDataStatic }, { "alBufferf", wine_alBufferf }, { "alBuffer3f", wine_alBuffer3f }, { "alBufferfv", wine_alBufferfv },