diff options
author | Chris Robinson <[email protected]> | 2017-06-28 12:42:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-28 12:42:20 -0700 |
commit | ebee8da05cc02fa8da0cbdc47dd9f379e20b962a (patch) | |
tree | 0e7549fd12ab1155dbb103414a48d5368ce47134 /router/alc.c | |
parent | 7cadbebe9f24a61b6b024359496a7a32d4eae5ee (diff) |
Start a router DLL
Experimental, Windows only. This is intended as an alternative to Creative's
router DLL, fixing a few issues with it (falsely reporting extensions that
aren't supported, not being able to query the ALC version without a device, and
not being able to use ALC extension functions).
When enabled OpenAL Soft's DLL is built as soft_oal.dll, while the router is
OpenAL32.dll.
Diffstat (limited to 'router/alc.c')
-rw-r--r-- | router/alc.c | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/router/alc.c b/router/alc.c new file mode 100644 index 00000000..45cacabe --- /dev/null +++ b/router/alc.c @@ -0,0 +1,103 @@ + +#include "config.h" + +#include <stddef.h> + +#include "AL/alc.h" + + +ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *devicename) +{ + return NULL; +} + +ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *device) +{ + return ALC_FALSE; +} + + +ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint* attrlist) +{ + return NULL; +} + +ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context) +{ + return ALC_FALSE; +} + +ALC_API void ALC_APIENTRY alcProcessContext(ALCcontext *context) +{ +} + +ALC_API void ALC_APIENTRY alcSuspendContext(ALCcontext *context) +{ +} + +ALC_API void ALC_APIENTRY alcDestroyContext(ALCcontext *context) +{ +} + +ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(void) +{ + return NULL; +} + +ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice(ALCcontext *context) +{ + return NULL; +} + + +ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device) +{ + return ALC_NO_ERROR; +} + +ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname) +{ + return ALC_FALSE; +} + +ALC_API void* ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcname) +{ + return NULL; +} + +ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumname) +{ + return 0; +} + +ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *device, ALCenum param) +{ + return NULL; +} + +ALC_API void ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values) +{ +} + + +ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize) +{ + return NULL; +} + +ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice(ALCdevice *device) +{ + return ALC_FALSE; +} + +ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device) +{ +} + +ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device) +{ +} + +ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples) +{ +} |