2009-08-25 12:26:35 +02:00
|
|
|
/*
|
|
|
|
* OpenAL32.dll thunk. Wraps Win32 OpenAL function calls around a native
|
|
|
|
* implementation.
|
|
|
|
*
|
|
|
|
* Copyright 2007 Nick Burns (adger44@hotmail.com)
|
|
|
|
* Copyright 2007,2009 Chris Robinson
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2009-08-25 13:30:25 +02:00
|
|
|
#ifdef HAVE_AL_AL_H
|
|
|
|
#include <AL/al.h>
|
|
|
|
#include <AL/alc.h>
|
2009-09-10 05:23:35 +02:00
|
|
|
#elif defined(HAVE_OPENAL_AL_H)
|
|
|
|
#include <OpenAL/al.h>
|
|
|
|
#include <OpenAL/alc.h>
|
2009-08-25 13:30:25 +02:00
|
|
|
#endif
|
|
|
|
|
2009-08-25 12:26:35 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(openal32);
|
|
|
|
|
2009-08-26 03:55:53 +02:00
|
|
|
typedef struct wine_ALCcontext {
|
|
|
|
ALCcontext *ctx;
|
|
|
|
|
2009-08-25 14:40:40 +02:00
|
|
|
ALboolean been_current;
|
|
|
|
|
2009-11-10 13:47:10 +01:00
|
|
|
ALvoid (AL_APIENTRY*alGenFilters)(ALsizei n, ALuint* filters);
|
|
|
|
ALvoid (AL_APIENTRY*alDeleteFilters)(ALsizei n, const ALuint* filters);
|
|
|
|
ALboolean (AL_APIENTRY*alIsFilter)(ALuint fid);
|
|
|
|
ALvoid (AL_APIENTRY*alFilterf)(ALuint fid, ALenum param, ALfloat value);
|
|
|
|
ALvoid (AL_APIENTRY*alFilterfv)(ALuint fid, ALenum param, const ALfloat* values);
|
|
|
|
ALvoid (AL_APIENTRY*alFilteri)(ALuint fid, ALenum param, ALint value);
|
|
|
|
ALvoid (AL_APIENTRY*alFilteriv)(ALuint fid, ALenum param, const ALint* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGetFilterf)(ALuint fid, ALenum param, ALfloat* value);
|
|
|
|
ALvoid (AL_APIENTRY*alGetFilterfv)(ALuint fid, ALenum param, ALfloat* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGetFilteri)(ALuint fid, ALenum param, ALint* value);
|
|
|
|
ALvoid (AL_APIENTRY*alGetFilteriv)(ALuint fid, ALenum param, ALint* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGenEffects)(ALsizei n, ALuint* effects);
|
|
|
|
ALvoid (AL_APIENTRY*alDeleteEffects)(ALsizei n, const ALuint* effects);
|
|
|
|
ALboolean (AL_APIENTRY*alIsEffect)(ALuint eid);
|
|
|
|
ALvoid (AL_APIENTRY*alEffectf)(ALuint eid, ALenum param, ALfloat value);
|
|
|
|
ALvoid (AL_APIENTRY*alEffectfv)(ALuint eid, ALenum param, const ALfloat* values);
|
|
|
|
ALvoid (AL_APIENTRY*alEffecti)(ALuint eid, ALenum param, ALint value);
|
|
|
|
ALvoid (AL_APIENTRY*alEffectiv)(ALuint eid, ALenum param, const ALint* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGetEffectf)(ALuint eid, ALenum param, ALfloat* value);
|
|
|
|
ALvoid (AL_APIENTRY*alGetEffectfv)(ALuint eid, ALenum param, ALfloat* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGetEffecti)(ALuint eid, ALenum param, ALint* value);
|
|
|
|
ALvoid (AL_APIENTRY*alGetEffectiv)(ALuint eid, ALenum param, ALint* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGenAuxiliaryEffectSlots)(ALsizei n, ALuint* slots);
|
|
|
|
ALvoid (AL_APIENTRY*alDeleteAuxiliaryEffectSlots)(ALsizei n, const ALuint* slots);
|
|
|
|
ALboolean (AL_APIENTRY*alIsAuxiliaryEffectSlot)(ALuint sid);
|
|
|
|
ALvoid (AL_APIENTRY*alAuxiliaryEffectSlotf)(ALuint sid, ALenum param, ALfloat value);
|
|
|
|
ALvoid (AL_APIENTRY*alAuxiliaryEffectSlotfv)(ALuint sid, ALenum param, const ALfloat* values);
|
|
|
|
ALvoid (AL_APIENTRY*alAuxiliaryEffectSloti)(ALuint sid, ALenum param, ALint value);
|
|
|
|
ALvoid (AL_APIENTRY*alAuxiliaryEffectSlotiv)(ALuint sid, ALenum param, const ALint* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGetAuxiliaryEffectSlotf)(ALuint sid, ALenum param, ALfloat* value);
|
|
|
|
ALvoid (AL_APIENTRY*alGetAuxiliaryEffectSlotfv)(ALuint sid, ALenum param, ALfloat* values);
|
|
|
|
ALvoid (AL_APIENTRY*alGetAuxiliaryEffectSloti)(ALuint sid, ALenum param, ALint* value);
|
|
|
|
ALvoid (AL_APIENTRY*alGetAuxiliaryEffectSlotiv)(ALuint sid, ALenum param, ALint* values);
|
2009-08-25 14:40:40 +02:00
|
|
|
|
2009-08-26 03:55:53 +02:00
|
|
|
struct wine_ALCcontext *next;
|
|
|
|
} wine_ALCcontext;
|
2009-08-25 12:26:35 +02:00
|
|
|
|
2009-08-25 13:30:25 +02:00
|
|
|
struct FuncList {
|
|
|
|
const char *name;
|
|
|
|
void *proc;
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct FuncList ALCFuncs[];
|
|
|
|
static const struct FuncList ALFuncs[];
|
|
|
|
|
2009-08-26 03:55:53 +02:00
|
|
|
static wine_ALCcontext *CtxList;
|
|
|
|
static wine_ALCcontext *CurrentCtx;
|
|
|
|
|
|
|
|
CRITICAL_SECTION openal_cs;
|
|
|
|
static CRITICAL_SECTION_DEBUG openal_cs_debug =
|
|
|
|
{
|
|
|
|
0, 0, &openal_cs,
|
|
|
|
{&openal_cs_debug.ProcessLocksList,
|
|
|
|
&openal_cs_debug.ProcessLocksList},
|
|
|
|
0, 0, {(DWORD_PTR)(__FILE__ ": openal_cs")}
|
|
|
|
};
|
|
|
|
CRITICAL_SECTION openal_cs = {&openal_cs_debug, -1, 0, 0, 0, 0};
|
2009-08-25 13:30:25 +02:00
|
|
|
|
2009-08-25 12:26:35 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* OpenAL initialisation routine
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
|
|
|
{
|
|
|
|
switch(reason)
|
|
|
|
{
|
2009-08-25 13:30:25 +02:00
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
DisableThreadLibraryCalls(hinst);
|
|
|
|
break;
|
2009-08-26 03:55:53 +02:00
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
while(CtxList)
|
|
|
|
{
|
|
|
|
wine_ALCcontext *next = CtxList->next;
|
|
|
|
HeapFree(GetProcessHeap(), 0, CtxList);
|
|
|
|
CtxList = next;
|
|
|
|
}
|
2009-08-25 12:26:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
2009-08-25 13:30:25 +02:00
|
|
|
|
|
|
|
|
2009-08-26 03:55:53 +02:00
|
|
|
/* Validates the given context */
|
|
|
|
static wine_ALCcontext *ValidateCtx(ALCcontext *ctx)
|
|
|
|
{
|
|
|
|
wine_ALCcontext *cur = CtxList;
|
|
|
|
|
|
|
|
while(cur != NULL && cur->ctx != ctx)
|
|
|
|
cur = cur->next;
|
|
|
|
return cur;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-08-25 13:30:25 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* OpenAL thunk routines
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* OpenAL ALC 1.0 functions */
|
|
|
|
ALCcontext* CDECL wine_alcCreateContext(ALCdevice *device, const ALCint* attrlist)
|
|
|
|
{
|
2009-08-26 03:55:53 +02:00
|
|
|
wine_ALCcontext *ctx;
|
|
|
|
|
|
|
|
ctx = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(wine_ALCcontext));
|
|
|
|
if(!ctx)
|
|
|
|
{
|
|
|
|
ERR("Out of memory!\n");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx->ctx = alcCreateContext(device, attrlist);
|
|
|
|
if(!ctx->ctx)
|
|
|
|
{
|
|
|
|
HeapFree(GetProcessHeap(), 0, ctx);
|
|
|
|
WARN("Failed to create new context\n");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
TRACE("Created new context %p\n", ctx->ctx);
|
|
|
|
|
|
|
|
EnterCriticalSection(&openal_cs);
|
|
|
|
ctx->next = CtxList;
|
|
|
|
CtxList = ctx;
|
|
|
|
LeaveCriticalSection(&openal_cs);
|
|
|
|
|
|
|
|
return ctx->ctx;
|
2009-08-25 13:30:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ALCboolean CDECL wine_alcMakeContextCurrent(ALCcontext *context)
|
|
|
|
{
|
2009-08-26 03:55:53 +02:00
|
|
|
wine_ALCcontext *ctx = NULL;
|
|
|
|
|
|
|
|
EnterCriticalSection(&openal_cs);
|
|
|
|
if(context && !(ctx=ValidateCtx(context)))
|
2009-09-10 21:13:24 +02:00
|
|
|
WARN("Could not find context %p in context list\n", context);
|
2009-08-26 03:55:53 +02:00
|
|
|
|
2009-09-10 21:12:08 +02:00
|
|
|
if(alcMakeContextCurrent(context) == ALC_FALSE)
|
2009-08-26 03:55:53 +02:00
|
|
|
{
|
2009-09-10 21:12:08 +02:00
|
|
|
WARN("Failed to make context %p current\n", context);
|
2009-08-26 03:55:53 +02:00
|
|
|
LeaveCriticalSection(&openal_cs);
|
|
|
|
return ALC_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
CurrentCtx = ctx;
|
2009-08-25 14:40:40 +02:00
|
|
|
if(CurrentCtx && !CurrentCtx->been_current)
|
|
|
|
{
|
|
|
|
CurrentCtx->been_current = AL_TRUE;
|
|
|
|
|
|
|
|
#define LOADFUNC(x) CurrentCtx->x = alGetProcAddress(#x)
|
|
|
|
LOADFUNC(alGenFilters);
|
|
|
|
LOADFUNC(alDeleteFilters);
|
|
|
|
LOADFUNC(alIsFilter);
|
|
|
|
LOADFUNC(alFilterf);
|
|
|
|
LOADFUNC(alFilterfv);
|
|
|
|
LOADFUNC(alFilteri);
|
|
|
|
LOADFUNC(alFilteriv);
|
|
|
|
LOADFUNC(alGetFilterf);
|
|
|
|
LOADFUNC(alGetFilterfv);
|
|
|
|
LOADFUNC(alGetFilteri);
|
|
|
|
LOADFUNC(alGetFilteriv);
|
|
|
|
LOADFUNC(alGenEffects);
|
|
|
|
LOADFUNC(alDeleteEffects);
|
|
|
|
LOADFUNC(alIsEffect);
|
|
|
|
LOADFUNC(alEffectf);
|
|
|
|
LOADFUNC(alEffectfv);
|
|
|
|
LOADFUNC(alEffecti);
|
|
|
|
LOADFUNC(alEffectiv);
|
|
|
|
LOADFUNC(alGetEffectf);
|
|
|
|
LOADFUNC(alGetEffectfv);
|
|
|
|
LOADFUNC(alGetEffecti);
|
|
|
|
LOADFUNC(alGetEffectiv);
|
|
|
|
LOADFUNC(alGenAuxiliaryEffectSlots);
|
|
|
|
LOADFUNC(alDeleteAuxiliaryEffectSlots);
|
|
|
|
LOADFUNC(alIsAuxiliaryEffectSlot);
|
|
|
|
LOADFUNC(alAuxiliaryEffectSlotf);
|
|
|
|
LOADFUNC(alAuxiliaryEffectSlotfv);
|
|
|
|
LOADFUNC(alAuxiliaryEffectSloti);
|
|
|
|
LOADFUNC(alAuxiliaryEffectSlotiv);
|
|
|
|
LOADFUNC(alGetAuxiliaryEffectSlotf);
|
|
|
|
LOADFUNC(alGetAuxiliaryEffectSlotfv);
|
|
|
|
LOADFUNC(alGetAuxiliaryEffectSloti);
|
|
|
|
LOADFUNC(alGetAuxiliaryEffectSlotiv);
|
|
|
|
#undef LOADFUNC
|
|
|
|
}
|
2009-08-26 03:55:53 +02:00
|
|
|
LeaveCriticalSection(&openal_cs);
|
|
|
|
|
|
|
|
return ALC_TRUE;
|
2009-08-25 13:30:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alcProcessContext(ALCcontext *context)
|
|
|
|
{
|
|
|
|
alcProcessContext(context);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alcSuspendContext(ALCcontext *context)
|
|
|
|
{
|
|
|
|
alcSuspendContext(context);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alcDestroyContext(ALCcontext *context)
|
|
|
|
{
|
2009-08-26 03:55:53 +02:00
|
|
|
wine_ALCcontext **list, *ctx;
|
|
|
|
|
|
|
|
EnterCriticalSection(&openal_cs);
|
|
|
|
|
|
|
|
list = &CtxList;
|
|
|
|
while(*list && (*list)->ctx != context)
|
|
|
|
list = &(*list)->next;
|
|
|
|
|
|
|
|
if(!(*list))
|
|
|
|
{
|
2009-09-10 21:13:24 +02:00
|
|
|
WARN("Could not find context %p in context list\n", context);
|
2009-09-10 21:12:08 +02:00
|
|
|
alcDestroyContext(context);
|
2009-08-26 03:55:53 +02:00
|
|
|
LeaveCriticalSection(&openal_cs);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx = *list;
|
|
|
|
*list = (*list)->next;
|
|
|
|
|
|
|
|
if(ctx == CurrentCtx)
|
|
|
|
CurrentCtx = NULL;
|
|
|
|
|
|
|
|
LeaveCriticalSection(&openal_cs);
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, ctx);
|
2009-08-25 13:30:25 +02:00
|
|
|
alcDestroyContext(context);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCcontext* CDECL wine_alcGetCurrentContext(ALCvoid)
|
|
|
|
{
|
2009-08-26 03:55:53 +02:00
|
|
|
ALCcontext *ret = NULL;
|
|
|
|
|
|
|
|
EnterCriticalSection(&openal_cs);
|
|
|
|
if(CurrentCtx)
|
|
|
|
ret = CurrentCtx->ctx;
|
|
|
|
LeaveCriticalSection(&openal_cs);
|
|
|
|
|
|
|
|
return ret;
|
2009-08-25 13:30:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ALCdevice* CDECL wine_alcGetContextsDevice(ALCcontext *context)
|
|
|
|
{
|
|
|
|
return alcGetContextsDevice(context);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCdevice* CDECL wine_alcOpenDevice(const ALCchar *devicename)
|
|
|
|
{
|
2009-09-30 17:37:54 +02:00
|
|
|
if(devicename != NULL && (strcmp(devicename, "DirectSound3D") == 0 ||
|
|
|
|
strcmp(devicename, "DirectSound") == 0 ||
|
|
|
|
strcmp(devicename, "Generic Hardware") == 0 ||
|
|
|
|
strcmp(devicename, "Generic Software") == 0)) {
|
|
|
|
devicename = NULL;
|
|
|
|
}
|
2009-08-25 13:30:25 +02:00
|
|
|
return alcOpenDevice(devicename);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCboolean CDECL wine_alcCloseDevice(ALCdevice *device)
|
|
|
|
{
|
|
|
|
return alcCloseDevice(device);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCenum CDECL wine_alcGetError(ALCdevice *device)
|
|
|
|
{
|
|
|
|
return alcGetError(device);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCboolean CDECL wine_alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname)
|
|
|
|
{
|
|
|
|
return alcIsExtensionPresent(device, extname);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCvoid* CDECL wine_alcGetProcAddress(ALCdevice *device, const ALCchar *funcname)
|
|
|
|
{
|
|
|
|
void *proc;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
/* Make sure the host implementation has the requested function */
|
|
|
|
proc = alcGetProcAddress(device, funcname);
|
|
|
|
if(!proc)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
for(i = 0;ALCFuncs[i].name;i++)
|
|
|
|
{
|
|
|
|
if(strcmp(funcname, ALCFuncs[i].name) == 0)
|
|
|
|
return ALCFuncs[i].proc;
|
|
|
|
}
|
|
|
|
FIXME("Could not find function in list: %s\n", funcname);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCenum CDECL wine_alcGetEnumValue(ALCdevice *device, const ALCchar *enumname)
|
|
|
|
{
|
|
|
|
return alcGetEnumValue(device, enumname);
|
|
|
|
}
|
|
|
|
|
|
|
|
const ALCchar* CDECL wine_alcGetString(ALCdevice *device, ALCenum param)
|
|
|
|
{
|
|
|
|
return alcGetString(device, param);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *dest)
|
|
|
|
{
|
|
|
|
return alcGetIntegerv(device, param, size, dest);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* OpenAL 1.0 functions */
|
|
|
|
ALvoid CDECL wine_alEnable(ALenum capability)
|
|
|
|
{
|
|
|
|
alEnable(capability);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDisable(ALenum capability)
|
|
|
|
{
|
|
|
|
alDisable(capability);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsEnabled(ALenum capability)
|
|
|
|
{
|
|
|
|
return alIsEnabled(capability);
|
|
|
|
}
|
|
|
|
|
|
|
|
const ALchar* CDECL wine_alGetString(ALenum param)
|
|
|
|
{
|
|
|
|
return alGetString(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBooleanv(ALenum param, ALboolean* data)
|
|
|
|
{
|
|
|
|
alGetBooleanv(param, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetIntegerv(ALenum param, ALint* data)
|
|
|
|
{
|
|
|
|
alGetIntegerv(param, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetFloatv(ALenum param, ALfloat* data)
|
|
|
|
{
|
|
|
|
alGetFloatv(param, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetDoublev(ALenum param, ALdouble* data)
|
|
|
|
{
|
|
|
|
alGetDoublev(param, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alGetBoolean(ALenum param)
|
|
|
|
{
|
|
|
|
return alGetBoolean(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALint CDECL wine_alGetInteger(ALenum param)
|
|
|
|
{
|
|
|
|
return alGetInteger(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALfloat CDECL wine_alGetFloat(ALenum param)
|
|
|
|
{
|
|
|
|
return alGetFloat(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALdouble CDECL wine_alGetDouble(ALenum param)
|
|
|
|
{
|
|
|
|
return alGetDouble(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALenum CDECL wine_alGetError(ALvoid)
|
|
|
|
{
|
|
|
|
return alGetError();
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsExtensionPresent(const ALchar* extname)
|
|
|
|
{
|
|
|
|
return alIsExtensionPresent(extname);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid* CDECL wine_alGetProcAddress(const ALchar* funcname)
|
|
|
|
{
|
|
|
|
void *proc;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
/* Make sure the host implementation has the requested function. This will
|
|
|
|
* also set the last AL error properly if the function should not be
|
|
|
|
* returned (eg. no current context). */
|
|
|
|
proc = alGetProcAddress(funcname);
|
|
|
|
if(!proc)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
for(i = 0;ALFuncs[i].name;i++)
|
|
|
|
{
|
|
|
|
if(strcmp(funcname, ALFuncs[i].name) == 0)
|
|
|
|
return ALFuncs[i].proc;
|
|
|
|
}
|
|
|
|
FIXME("Could not find function in list: %s\n", funcname);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
ALenum CDECL wine_alGetEnumValue(const ALchar* ename)
|
|
|
|
{
|
|
|
|
return alGetEnumValue(ename);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alListenerf(ALenum param, ALfloat value)
|
|
|
|
{
|
|
|
|
alListenerf(param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alListener3f(ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
|
|
|
|
{
|
|
|
|
alListener3f(param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alListenerfv(ALenum param, const ALfloat* values)
|
|
|
|
{
|
|
|
|
alListenerfv(param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alListeneri(ALenum param, ALint value)
|
|
|
|
{
|
|
|
|
alListeneri(param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetListenerf(ALenum param, ALfloat* value)
|
|
|
|
{
|
|
|
|
alGetListenerf(param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetListener3f(ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
|
|
|
|
{
|
|
|
|
alGetListener3f(param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetListenerfv(ALenum param, ALfloat* values)
|
|
|
|
{
|
|
|
|
alGetListenerfv(param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetListeneri(ALenum param, ALint* value)
|
|
|
|
{
|
|
|
|
alGetListeneri(param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetListeneriv(ALenum param, ALint* values)
|
|
|
|
{
|
|
|
|
alGetListeneriv(param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGenSources(ALsizei n, ALuint* sources)
|
|
|
|
{
|
|
|
|
alGenSources(n, sources);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDeleteSources(ALsizei n, const ALuint* sources)
|
|
|
|
{
|
|
|
|
alDeleteSources(n, sources);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsSource(ALuint sid)
|
|
|
|
{
|
|
|
|
return alIsSource(sid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcef(ALuint sid, ALenum param, ALfloat value)
|
|
|
|
{
|
|
|
|
alSourcef(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSource3f(ALuint sid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
|
|
|
|
{
|
|
|
|
alSource3f(sid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcefv(ALuint sid, ALenum param, const ALfloat* values)
|
|
|
|
{
|
|
|
|
alSourcefv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcei(ALuint sid, ALenum param, ALint value)
|
|
|
|
{
|
|
|
|
alSourcei(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetSourcef(ALuint sid, ALenum param, ALfloat* value)
|
|
|
|
{
|
|
|
|
alGetSourcef(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetSource3f(ALuint sid, ALenum param, ALfloat* value1, ALfloat* value2, ALfloat* value3)
|
|
|
|
{
|
|
|
|
alGetSource3f(sid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetSourcefv(ALuint sid, ALenum param, ALfloat* values)
|
|
|
|
{
|
|
|
|
alGetSourcefv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetSourcei(ALuint sid, ALenum param, ALint* value)
|
|
|
|
{
|
|
|
|
alGetSourcei(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetSourceiv(ALuint sid, ALenum param, ALint* values)
|
|
|
|
{
|
|
|
|
alGetSourceiv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcePlayv(ALsizei ns, const ALuint *sids)
|
|
|
|
{
|
|
|
|
alSourcePlayv(ns, sids);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceStopv(ALsizei ns, const ALuint *sids)
|
|
|
|
{
|
|
|
|
alSourceStopv(ns, sids);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceRewindv(ALsizei ns, const ALuint *sids)
|
|
|
|
{
|
|
|
|
alSourceRewindv(ns, sids);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcePausev(ALsizei ns, const ALuint *sids)
|
|
|
|
{
|
|
|
|
alSourcePausev(ns, sids);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcePlay(ALuint sid)
|
|
|
|
{
|
|
|
|
alSourcePlay(sid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceStop(ALuint sid)
|
|
|
|
{
|
|
|
|
alSourceStop(sid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceRewind(ALuint sid)
|
|
|
|
{
|
|
|
|
alSourceRewind(sid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourcePause(ALuint sid)
|
|
|
|
{
|
|
|
|
alSourcePause(sid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceQueueBuffers(ALuint sid, ALsizei numEntries, const ALuint *bids)
|
|
|
|
{
|
|
|
|
alSourceQueueBuffers(sid, numEntries, bids);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceUnqueueBuffers(ALuint sid, ALsizei numEntries, ALuint *bids)
|
|
|
|
{
|
|
|
|
alSourceUnqueueBuffers(sid, numEntries, bids);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGenBuffers(ALsizei n, ALuint* buffers)
|
|
|
|
{
|
|
|
|
alGenBuffers(n, buffers);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDeleteBuffers(ALsizei n, const ALuint* buffers)
|
|
|
|
{
|
|
|
|
alDeleteBuffers(n, buffers);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsBuffer(ALuint bid)
|
|
|
|
{
|
|
|
|
return alIsBuffer(bid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBufferData(ALuint bid, ALenum format, const ALvoid* data, ALsizei size, ALsizei freq)
|
|
|
|
{
|
|
|
|
alBufferData(bid, format, data, size, freq);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBufferf(ALuint bid, ALenum param, ALfloat* value)
|
|
|
|
{
|
|
|
|
alGetBufferf(bid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBufferfv(ALuint bid, ALenum param, ALfloat* values)
|
|
|
|
{
|
|
|
|
alGetBufferfv(bid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBufferi(ALuint bid, ALenum param, ALint* value)
|
|
|
|
{
|
|
|
|
alGetBufferi(bid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBufferiv(ALuint bid, ALenum param, ALint* values)
|
|
|
|
{
|
|
|
|
alGetBufferiv(bid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDopplerFactor(ALfloat value)
|
|
|
|
{
|
|
|
|
alDopplerFactor(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDopplerVelocity(ALfloat value)
|
|
|
|
{
|
|
|
|
alDopplerVelocity(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDistanceModel(ALenum distanceModel)
|
|
|
|
{
|
|
|
|
alDistanceModel(distanceModel);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* OpenAL ALC 1.1 functions */
|
|
|
|
ALCdevice* CDECL wine_alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize)
|
|
|
|
{
|
|
|
|
return alcCaptureOpenDevice(devicename, frequency, format, buffersize);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCboolean CDECL wine_alcCaptureCloseDevice(ALCdevice *device)
|
|
|
|
{
|
|
|
|
return alcCaptureCloseDevice(device);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCvoid CDECL wine_alcCaptureStart(ALCdevice *device)
|
|
|
|
{
|
|
|
|
alcCaptureStart(device);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCvoid CDECL wine_alcCaptureStop(ALCdevice *device)
|
|
|
|
{
|
|
|
|
alcCaptureStop(device);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALCvoid CDECL wine_alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
|
|
|
|
{
|
|
|
|
alcCaptureSamples(device, buffer, samples);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OpenAL 1.1 functions */
|
|
|
|
ALvoid CDECL wine_alListener3i(ALenum param, ALint value1, ALint value2, ALint value3)
|
|
|
|
{
|
|
|
|
alListener3i(param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alListeneriv(ALenum param, const ALint* values)
|
|
|
|
{
|
|
|
|
alListeneriv(param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetListener3i(ALenum param, ALint *value1, ALint *value2, ALint *value3)
|
|
|
|
{
|
|
|
|
alGetListener3i(param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSource3i(ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3)
|
|
|
|
{
|
|
|
|
alSource3i(sid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSourceiv(ALuint sid, ALenum param, const ALint* values)
|
|
|
|
{
|
|
|
|
alSourceiv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetSource3i(ALuint sid, ALenum param, ALint* value1, ALint* value2, ALint* value3)
|
|
|
|
{
|
|
|
|
alGetSource3i(sid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBufferf(ALuint bid, ALenum param, ALfloat value)
|
|
|
|
{
|
|
|
|
alBufferf(bid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBuffer3f(ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
|
|
|
|
{
|
|
|
|
alBuffer3f(bid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBufferfv(ALuint bid, ALenum param, const ALfloat* values)
|
|
|
|
{
|
|
|
|
alBufferfv(bid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBufferi(ALuint bid, ALenum param, ALint value)
|
|
|
|
{
|
|
|
|
alBufferi(bid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBuffer3i(ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3)
|
|
|
|
{
|
|
|
|
alBuffer3i(bid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alBufferiv(ALuint bid, ALenum param, const ALint* values)
|
|
|
|
{
|
|
|
|
alBufferiv(bid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBuffer3f(ALuint bid, ALenum param, ALfloat* value1, ALfloat* value2, ALfloat* value3)
|
|
|
|
{
|
|
|
|
alGetBuffer3f(bid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetBuffer3i(ALuint bid, ALenum param, ALint* value1, ALint* value2, ALint* value3)
|
|
|
|
{
|
|
|
|
alGetBuffer3i(bid, param, value1, value2, value3);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alSpeedOfSound(ALfloat value)
|
|
|
|
{
|
|
|
|
alSpeedOfSound(value);
|
|
|
|
}
|
|
|
|
|
2009-08-25 14:40:40 +02:00
|
|
|
/* OpenAL EFX extension functions */
|
|
|
|
ALvoid CDECL wine_alGenFilters(ALsizei n, ALuint* filters)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGenFilters(n, filters);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDeleteFilters(ALsizei n, const ALuint* filters)
|
|
|
|
{
|
|
|
|
CurrentCtx->alDeleteFilters(n, filters);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsFilter(ALuint fid)
|
|
|
|
{
|
|
|
|
return CurrentCtx->alIsFilter(fid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alFilterf(ALuint fid, ALenum param, ALfloat value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alFilterf(fid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alFilterfv(ALuint fid, ALenum param, const ALfloat* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alFilterfv(fid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alFilteri(ALuint fid, ALenum param, ALint value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alFilteri(fid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alFilteriv(ALuint fid, ALenum param, const ALint* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alFilteriv(fid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetFilterf(ALuint fid, ALenum param, ALfloat* value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetFilterf(fid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetFilterfv(ALuint fid, ALenum param, ALfloat* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetFilterfv(fid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetFilteri(ALuint fid, ALenum param, ALint* value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetFilteri(fid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetFilteriv(ALuint fid, ALenum param, ALint* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetFilteriv(fid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGenEffects(ALsizei n, ALuint* effects)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGenEffects(n, effects);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDeleteEffects(ALsizei n, const ALuint* effects)
|
|
|
|
{
|
|
|
|
CurrentCtx->alDeleteEffects(n, effects);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsEffect(ALuint eid)
|
|
|
|
{
|
|
|
|
return CurrentCtx->alIsEffect(eid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alEffectf(ALuint eid, ALenum param, ALfloat value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alEffectf(eid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alEffectfv(ALuint eid, ALenum param, const ALfloat* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alEffectfv(eid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alEffecti(ALuint eid, ALenum param, ALint value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alEffecti(eid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alEffectiv(ALuint eid, ALenum param, const ALint* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alEffectiv(eid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetEffectf(ALuint eid, ALenum param, ALfloat* value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetEffectf(eid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetEffectfv(ALuint eid, ALenum param, ALfloat* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetEffectfv(eid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetEffecti(ALuint eid, ALenum param, ALint* value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetEffecti(eid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetEffectiv(ALuint eid, ALenum param, ALint* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetEffectiv(eid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGenAuxiliaryEffectSlots(ALsizei n, ALuint* slots)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGenAuxiliaryEffectSlots(n, slots);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alDeleteAuxiliaryEffectSlots(ALsizei n, const ALuint* slots)
|
|
|
|
{
|
|
|
|
CurrentCtx->alDeleteAuxiliaryEffectSlots(n, slots);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALboolean CDECL wine_alIsAuxiliaryEffectSlot(ALuint sid)
|
|
|
|
{
|
|
|
|
return CurrentCtx->alIsAuxiliaryEffectSlot(sid);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alAuxiliaryEffectSlotf(ALuint sid, ALenum param, ALfloat value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alAuxiliaryEffectSlotf(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alAuxiliaryEffectSlotfv(ALuint sid, ALenum param, const ALfloat* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alAuxiliaryEffectSlotfv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alAuxiliaryEffectSloti(ALuint sid, ALenum param, ALint value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alAuxiliaryEffectSloti(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alAuxiliaryEffectSlotiv(ALuint sid, ALenum param, const ALint* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alAuxiliaryEffectSlotiv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetAuxiliaryEffectSlotf(ALuint sid, ALenum param, ALfloat* value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetAuxiliaryEffectSlotf(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetAuxiliaryEffectSlotfv(ALuint sid, ALenum param, ALfloat* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetAuxiliaryEffectSlotfv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetAuxiliaryEffectSloti(ALuint sid, ALenum param, ALint* value)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetAuxiliaryEffectSloti(sid, param, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
ALvoid CDECL wine_alGetAuxiliaryEffectSlotiv(ALuint sid, ALenum param, ALint* values)
|
|
|
|
{
|
|
|
|
CurrentCtx->alGetAuxiliaryEffectSlotiv(sid, param, values);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-08-25 13:30:25 +02:00
|
|
|
static const struct FuncList ALCFuncs[] = {
|
|
|
|
{ "alcCreateContext", wine_alcCreateContext },
|
|
|
|
{ "alcMakeContextCurrent", wine_alcMakeContextCurrent },
|
|
|
|
{ "alcProcessContext", wine_alcProcessContext },
|
|
|
|
{ "alcSuspendContext", wine_alcSuspendContext },
|
|
|
|
{ "alcDestroyContext", wine_alcDestroyContext },
|
|
|
|
{ "alcGetCurrentContext", wine_alcGetCurrentContext },
|
|
|
|
{ "alcGetContextsDevice", wine_alcGetContextsDevice },
|
|
|
|
{ "alcOpenDevice", wine_alcOpenDevice },
|
|
|
|
{ "alcCloseDevice", wine_alcCloseDevice },
|
|
|
|
{ "alcGetError", wine_alcGetError },
|
|
|
|
{ "alcIsExtensionPresent", wine_alcIsExtensionPresent },
|
|
|
|
{ "alcGetProcAddress", wine_alcGetProcAddress },
|
|
|
|
{ "alcGetEnumValue", wine_alcGetEnumValue },
|
|
|
|
{ "alcGetString", wine_alcGetString },
|
|
|
|
{ "alcGetIntegerv", wine_alcGetIntegerv },
|
|
|
|
{ "alcCaptureOpenDevice", wine_alcCaptureOpenDevice },
|
|
|
|
{ "alcCaptureCloseDevice", wine_alcCaptureCloseDevice },
|
|
|
|
{ "alcCaptureStart", wine_alcCaptureStart },
|
|
|
|
{ "alcCaptureStop", wine_alcCaptureStop },
|
|
|
|
{ "alcCaptureSamples", wine_alcCaptureSamples },
|
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
static const struct FuncList ALFuncs[] = {
|
|
|
|
{ "alEnable", wine_alEnable },
|
|
|
|
{ "alDisable", wine_alDisable },
|
|
|
|
{ "alIsEnabled", wine_alIsEnabled },
|
|
|
|
{ "alGetString", wine_alGetString },
|
|
|
|
{ "alGetBooleanv", wine_alGetBooleanv },
|
|
|
|
{ "alGetIntegerv", wine_alGetIntegerv },
|
|
|
|
{ "alGetFloatv", wine_alGetFloatv },
|
|
|
|
{ "alGetDoublev", wine_alGetDoublev },
|
|
|
|
{ "alGetBoolean", wine_alGetBoolean },
|
|
|
|
{ "alGetInteger", wine_alGetInteger },
|
|
|
|
{ "alGetFloat", wine_alGetFloat },
|
|
|
|
{ "alGetDouble", wine_alGetDouble },
|
|
|
|
{ "alGetError", wine_alGetError },
|
|
|
|
{ "alIsExtensionPresent", wine_alIsExtensionPresent },
|
|
|
|
{ "alGetProcAddress", wine_alGetProcAddress },
|
|
|
|
{ "alGetEnumValue", wine_alGetEnumValue },
|
|
|
|
{ "alListenerf", wine_alListenerf },
|
|
|
|
{ "alListener3f", wine_alListener3f },
|
|
|
|
{ "alListenerfv", wine_alListenerfv },
|
|
|
|
{ "alListeneri", wine_alListeneri },
|
|
|
|
{ "alListener3i", wine_alListener3i },
|
|
|
|
{ "alListeneriv", wine_alListeneriv },
|
|
|
|
{ "alGetListenerf", wine_alGetListenerf },
|
|
|
|
{ "alGetListener3f", wine_alGetListener3f },
|
|
|
|
{ "alGetListenerfv", wine_alGetListenerfv },
|
|
|
|
{ "alGetListeneri", wine_alGetListeneri },
|
|
|
|
{ "alGetListener3i", wine_alGetListener3i },
|
|
|
|
{ "alGetListeneriv", wine_alGetListeneriv },
|
|
|
|
{ "alGenSources", wine_alGenSources },
|
|
|
|
{ "alDeleteSources", wine_alDeleteSources },
|
|
|
|
{ "alIsSource", wine_alIsSource },
|
|
|
|
{ "alSourcef", wine_alSourcef },
|
|
|
|
{ "alSource3f", wine_alSource3f },
|
|
|
|
{ "alSourcefv", wine_alSourcefv },
|
|
|
|
{ "alSourcei", wine_alSourcei },
|
|
|
|
{ "alSource3i", wine_alSource3i },
|
|
|
|
{ "alSourceiv", wine_alSourceiv },
|
|
|
|
{ "alGetSourcef", wine_alGetSourcef },
|
|
|
|
{ "alGetSource3f", wine_alGetSource3f },
|
|
|
|
{ "alGetSourcefv", wine_alGetSourcefv },
|
|
|
|
{ "alGetSourcei", wine_alGetSourcei },
|
|
|
|
{ "alGetSource3i", wine_alGetSource3i },
|
|
|
|
{ "alGetSourceiv", wine_alGetSourceiv },
|
|
|
|
{ "alSourcePlayv", wine_alSourcePlayv },
|
|
|
|
{ "alSourceStopv", wine_alSourceStopv },
|
|
|
|
{ "alSourceRewindv", wine_alSourceRewindv },
|
|
|
|
{ "alSourcePausev", wine_alSourcePausev },
|
|
|
|
{ "alSourcePlay", wine_alSourcePlay },
|
|
|
|
{ "alSourceStop", wine_alSourceStop },
|
|
|
|
{ "alSourceRewind", wine_alSourceRewind },
|
|
|
|
{ "alSourcePause", wine_alSourcePause },
|
|
|
|
{ "alSourceQueueBuffers", wine_alSourceQueueBuffers },
|
|
|
|
{ "alSourceUnqueueBuffers", wine_alSourceUnqueueBuffers },
|
|
|
|
{ "alGenBuffers", wine_alGenBuffers },
|
|
|
|
{ "alDeleteBuffers", wine_alDeleteBuffers },
|
|
|
|
{ "alIsBuffer", wine_alIsBuffer },
|
|
|
|
{ "alBufferData", wine_alBufferData },
|
|
|
|
{ "alBufferf", wine_alBufferf },
|
|
|
|
{ "alBuffer3f", wine_alBuffer3f },
|
|
|
|
{ "alBufferfv", wine_alBufferfv },
|
|
|
|
{ "alBufferi", wine_alBufferi },
|
|
|
|
{ "alBuffer3i", wine_alBuffer3i },
|
|
|
|
{ "alBufferiv", wine_alBufferiv },
|
|
|
|
{ "alGetBufferf", wine_alGetBufferf },
|
|
|
|
{ "alGetBuffer3f", wine_alGetBuffer3f },
|
|
|
|
{ "alGetBufferfv", wine_alGetBufferfv },
|
|
|
|
{ "alGetBufferi", wine_alGetBufferi },
|
|
|
|
{ "alGetBuffer3i", wine_alGetBuffer3i },
|
|
|
|
{ "alGetBufferiv", wine_alGetBufferiv },
|
|
|
|
{ "alDopplerFactor", wine_alDopplerFactor },
|
|
|
|
{ "alDopplerVelocity", wine_alDopplerVelocity },
|
|
|
|
{ "alSpeedOfSound", wine_alSpeedOfSound },
|
|
|
|
{ "alDistanceModel", wine_alDistanceModel },
|
2009-08-25 14:40:40 +02:00
|
|
|
|
|
|
|
{ "alGenFilters", wine_alGenFilters },
|
|
|
|
{ "alDeleteFilters", wine_alDeleteFilters },
|
|
|
|
{ "alIsFilter", wine_alIsFilter },
|
|
|
|
{ "alFilterf", wine_alFilterf },
|
|
|
|
{ "alFilterfv", wine_alFilterfv },
|
|
|
|
{ "alFilteri", wine_alFilteri },
|
|
|
|
{ "alFilteriv", wine_alFilteriv },
|
|
|
|
{ "alGetFilterf", wine_alGetFilterf },
|
|
|
|
{ "alGetFilterfv", wine_alGetFilterfv },
|
|
|
|
{ "alGetFilteri", wine_alGetFilteri },
|
|
|
|
{ "alGetFilteriv", wine_alGetFilteriv },
|
|
|
|
|
|
|
|
{ "alGenEffects", wine_alGenEffects },
|
|
|
|
{ "alDeleteEffects", wine_alDeleteEffects },
|
|
|
|
{ "alIsEffect", wine_alIsEffect },
|
|
|
|
{ "alEffectf", wine_alEffectf },
|
|
|
|
{ "alEffectfv", wine_alEffectfv },
|
|
|
|
{ "alEffecti", wine_alEffecti },
|
|
|
|
{ "alEffectiv", wine_alEffectiv },
|
|
|
|
{ "alGetEffectf", wine_alGetEffectf },
|
|
|
|
{ "alGetEffectfv", wine_alGetEffectfv },
|
|
|
|
{ "alGetEffecti", wine_alGetEffecti },
|
|
|
|
{ "alGetEffectiv", wine_alGetEffectiv },
|
|
|
|
|
|
|
|
{ "alGenAuxiliaryEffectSlots", wine_alGenAuxiliaryEffectSlots},
|
|
|
|
{ "alDeleteAuxiliaryEffectSlots",wine_alDeleteAuxiliaryEffectSlots},
|
|
|
|
{ "alIsAuxiliaryEffectSlot", wine_alIsAuxiliaryEffectSlot },
|
|
|
|
{ "alAuxiliaryEffectSlotf", wine_alAuxiliaryEffectSlotf },
|
|
|
|
{ "alAuxiliaryEffectSlotfv", wine_alAuxiliaryEffectSlotfv },
|
|
|
|
{ "alAuxiliaryEffectSloti", wine_alAuxiliaryEffectSloti },
|
|
|
|
{ "alAuxiliaryEffectSlotiv", wine_alAuxiliaryEffectSlotiv },
|
|
|
|
{ "alGetAuxiliaryEffectSlotf", wine_alGetAuxiliaryEffectSlotf},
|
|
|
|
{ "alGetAuxiliaryEffectSlotfv", wine_alGetAuxiliaryEffectSlotfv},
|
|
|
|
{ "alGetAuxiliaryEffectSloti", wine_alGetAuxiliaryEffectSloti},
|
|
|
|
{ "alGetAuxiliaryEffectSlotiv", wine_alGetAuxiliaryEffectSlotiv},
|
|
|
|
|
2009-08-25 13:30:25 +02:00
|
|
|
{ NULL, NULL }
|
|
|
|
};
|