mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-30 16:01:46 +00:00
Revert changes in ioquake3 AL code, fix OpenAL headers.
This commit is contained in:
parent
a9a8022d53
commit
99c8676383
4 changed files with 172 additions and 3 deletions
|
@ -339,6 +339,7 @@ ALAPI void ALAPIENTRY alDistanceModel( ALenum distanceModel );
|
||||||
|
|
||||||
#else /* AL_NO_PROTOTYPES */
|
#else /* AL_NO_PROTOTYPES */
|
||||||
|
|
||||||
|
/*
|
||||||
void (ALAPIENTRY *alEnable)( ALenum capability );
|
void (ALAPIENTRY *alEnable)( ALenum capability );
|
||||||
void (ALAPIENTRY *alDisable)( ALenum capability );
|
void (ALAPIENTRY *alDisable)( ALenum capability );
|
||||||
ALboolean (ALAPIENTRY *alIsEnabled)( ALenum capability );
|
ALboolean (ALAPIENTRY *alIsEnabled)( ALenum capability );
|
||||||
|
@ -412,7 +413,7 @@ void (ALAPIENTRY *alDopplerFactor)( ALfloat value );
|
||||||
void (ALAPIENTRY *alDopplerVelocity)( ALfloat value );
|
void (ALAPIENTRY *alDopplerVelocity)( ALfloat value );
|
||||||
void (ALAPIENTRY *alSpeedOfSound)( ALfloat value );
|
void (ALAPIENTRY *alSpeedOfSound)( ALfloat value );
|
||||||
void (ALAPIENTRY *alDistanceModel)( ALenum distanceModel );
|
void (ALAPIENTRY *alDistanceModel)( ALenum distanceModel );
|
||||||
|
*/
|
||||||
/* Type Definitions */
|
/* Type Definitions */
|
||||||
|
|
||||||
typedef void (ALAPIENTRY *LPALENABLE)( ALenum capability );
|
typedef void (ALAPIENTRY *LPALENABLE)( ALenum capability );
|
||||||
|
|
|
@ -107,7 +107,7 @@ ALCAPI void ALCAPIENTRY alcCaptureStop( ALCdevice *device );
|
||||||
ALCAPI void ALCAPIENTRY alcCaptureSamples( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
|
ALCAPI void ALCAPIENTRY alcCaptureSamples( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
|
||||||
|
|
||||||
#else /* ALC_NO_PROTOTYPES */
|
#else /* ALC_NO_PROTOTYPES */
|
||||||
|
/*
|
||||||
ALCAPI ALCcontext * (ALCAPIENTRY *alcCreateContext)( ALCdevice *device, const ALCint* attrlist );
|
ALCAPI ALCcontext * (ALCAPIENTRY *alcCreateContext)( ALCdevice *device, const ALCint* attrlist );
|
||||||
ALCAPI ALCboolean (ALCAPIENTRY *alcMakeContextCurrent)( ALCcontext *context );
|
ALCAPI ALCboolean (ALCAPIENTRY *alcMakeContextCurrent)( ALCcontext *context );
|
||||||
ALCAPI void (ALCAPIENTRY *alcProcessContext)( ALCcontext *context );
|
ALCAPI void (ALCAPIENTRY *alcProcessContext)( ALCcontext *context );
|
||||||
|
@ -128,7 +128,7 @@ ALCAPI ALCboolean (ALCAPIENTRY *alcCaptureCloseDevice)( ALCdevice *device )
|
||||||
ALCAPI void (ALCAPIENTRY *alcCaptureStart)( ALCdevice *device );
|
ALCAPI void (ALCAPIENTRY *alcCaptureStart)( ALCdevice *device );
|
||||||
ALCAPI void (ALCAPIENTRY *alcCaptureStop)( ALCdevice *device );
|
ALCAPI void (ALCAPIENTRY *alcCaptureStop)( ALCdevice *device );
|
||||||
ALCAPI void (ALCAPIENTRY *alcCaptureSamples)( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
|
ALCAPI void (ALCAPIENTRY *alcCaptureSamples)( ALCdevice *device, ALCvoid *buffer, ALCsizei samples );
|
||||||
|
*/
|
||||||
/* Type definitions */
|
/* Type definitions */
|
||||||
typedef ALCcontext * (ALCAPIENTRY *LPALCCREATECONTEXT) (ALCdevice *device, const ALCint *attrlist);
|
typedef ALCcontext * (ALCAPIENTRY *LPALCCREATECONTEXT) (ALCdevice *device, const ALCint *attrlist);
|
||||||
typedef ALCboolean (ALCAPIENTRY *LPALCMAKECONTEXTCURRENT)( ALCcontext *context );
|
typedef ALCboolean (ALCAPIENTRY *LPALCMAKECONTEXTCURRENT)( ALCcontext *context );
|
||||||
|
|
|
@ -31,6 +31,77 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#include "../sys/sys_loadlib.h"
|
#include "../sys/sys_loadlib.h"
|
||||||
|
|
||||||
|
LPALENABLE qalEnable;
|
||||||
|
LPALDISABLE qalDisable;
|
||||||
|
LPALISENABLED qalIsEnabled;
|
||||||
|
LPALGETSTRING qalGetString;
|
||||||
|
LPALGETBOOLEANV qalGetBooleanv;
|
||||||
|
LPALGETINTEGERV qalGetIntegerv;
|
||||||
|
LPALGETFLOATV qalGetFloatv;
|
||||||
|
LPALGETDOUBLEV qalGetDoublev;
|
||||||
|
LPALGETBOOLEAN qalGetBoolean;
|
||||||
|
LPALGETINTEGER qalGetInteger;
|
||||||
|
LPALGETFLOAT qalGetFloat;
|
||||||
|
LPALGETDOUBLE qalGetDouble;
|
||||||
|
LPALGETERROR qalGetError;
|
||||||
|
LPALISEXTENSIONPRESENT qalIsExtensionPresent;
|
||||||
|
LPALGETPROCADDRESS qalGetProcAddress;
|
||||||
|
LPALGETENUMVALUE qalGetEnumValue;
|
||||||
|
LPALLISTENERF qalListenerf;
|
||||||
|
LPALLISTENER3F qalListener3f;
|
||||||
|
LPALLISTENERFV qalListenerfv;
|
||||||
|
LPALLISTENERI qalListeneri;
|
||||||
|
LPALGETLISTENERF qalGetListenerf;
|
||||||
|
LPALGETLISTENER3F qalGetListener3f;
|
||||||
|
LPALGETLISTENERFV qalGetListenerfv;
|
||||||
|
LPALGETLISTENERI qalGetListeneri;
|
||||||
|
LPALGENSOURCES qalGenSources;
|
||||||
|
LPALDELETESOURCES qalDeleteSources;
|
||||||
|
LPALISSOURCE qalIsSource;
|
||||||
|
LPALSOURCEF qalSourcef;
|
||||||
|
LPALSOURCE3F qalSource3f;
|
||||||
|
LPALSOURCEFV qalSourcefv;
|
||||||
|
LPALSOURCEI qalSourcei;
|
||||||
|
LPALGETSOURCEF qalGetSourcef;
|
||||||
|
LPALGETSOURCE3F qalGetSource3f;
|
||||||
|
LPALGETSOURCEFV qalGetSourcefv;
|
||||||
|
LPALGETSOURCEI qalGetSourcei;
|
||||||
|
LPALSOURCEPLAYV qalSourcePlayv;
|
||||||
|
LPALSOURCESTOPV qalSourceStopv;
|
||||||
|
LPALSOURCEREWINDV qalSourceRewindv;
|
||||||
|
LPALSOURCEPAUSEV qalSourcePausev;
|
||||||
|
LPALSOURCEPLAY qalSourcePlay;
|
||||||
|
LPALSOURCESTOP qalSourceStop;
|
||||||
|
LPALSOURCEREWIND qalSourceRewind;
|
||||||
|
LPALSOURCEPAUSE qalSourcePause;
|
||||||
|
LPALSOURCEQUEUEBUFFERS qalSourceQueueBuffers;
|
||||||
|
LPALSOURCEUNQUEUEBUFFERS qalSourceUnqueueBuffers;
|
||||||
|
LPALGENBUFFERS qalGenBuffers;
|
||||||
|
LPALDELETEBUFFERS qalDeleteBuffers;
|
||||||
|
LPALISBUFFER qalIsBuffer;
|
||||||
|
LPALBUFFERDATA qalBufferData;
|
||||||
|
LPALGETBUFFERF qalGetBufferf;
|
||||||
|
LPALGETBUFFERI qalGetBufferi;
|
||||||
|
LPALDOPPLERFACTOR qalDopplerFactor;
|
||||||
|
LPALDOPPLERVELOCITY qalDopplerVelocity;
|
||||||
|
LPALDISTANCEMODEL qalDistanceModel;
|
||||||
|
|
||||||
|
LPALCCREATECONTEXT qalcCreateContext;
|
||||||
|
LPALCMAKECONTEXTCURRENT qalcMakeContextCurrent;
|
||||||
|
LPALCPROCESSCONTEXT qalcProcessContext;
|
||||||
|
LPALCSUSPENDCONTEXT qalcSuspendContext;
|
||||||
|
LPALCDESTROYCONTEXT qalcDestroyContext;
|
||||||
|
LPALCGETCURRENTCONTEXT qalcGetCurrentContext;
|
||||||
|
LPALCGETCONTEXTSDEVICE qalcGetContextsDevice;
|
||||||
|
LPALCOPENDEVICE qalcOpenDevice;
|
||||||
|
LPALCCLOSEDEVICE qalcCloseDevice;
|
||||||
|
LPALCGETERROR qalcGetError;
|
||||||
|
LPALCISEXTENSIONPRESENT qalcIsExtensionPresent;
|
||||||
|
LPALCGETPROCADDRESS qalcGetProcAddress;
|
||||||
|
LPALCGETENUMVALUE qalcGetEnumValue;
|
||||||
|
LPALCGETSTRING qalcGetString;
|
||||||
|
LPALCGETINTEGERV qalcGetIntegerv;
|
||||||
|
|
||||||
static void *OpenALLib = NULL;
|
static void *OpenALLib = NULL;
|
||||||
|
|
||||||
static qboolean alinit_fail = qfalse;
|
static qboolean alinit_fail = qfalse;
|
||||||
|
|
|
@ -47,6 +47,102 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_OPENAL_DLOPEN
|
||||||
|
extern LPALENABLE qalEnable;
|
||||||
|
extern LPALDISABLE qalDisable;
|
||||||
|
extern LPALISENABLED qalIsEnabled;
|
||||||
|
extern LPALGETSTRING qalGetString;
|
||||||
|
extern LPALGETBOOLEANV qalGetBooleanv;
|
||||||
|
extern LPALGETINTEGERV qalGetIntegerv;
|
||||||
|
extern LPALGETFLOATV qalGetFloatv;
|
||||||
|
extern LPALGETDOUBLEV qalGetDoublev;
|
||||||
|
extern LPALGETBOOLEAN qalGetBoolean;
|
||||||
|
extern LPALGETINTEGER qalGetInteger;
|
||||||
|
extern LPALGETFLOAT qalGetFloat;
|
||||||
|
extern LPALGETDOUBLE qalGetDouble;
|
||||||
|
extern LPALGETERROR qalGetError;
|
||||||
|
extern LPALISEXTENSIONPRESENT qalIsExtensionPresent;
|
||||||
|
extern LPALGETPROCADDRESS qalGetProcAddress;
|
||||||
|
extern LPALGETENUMVALUE qalGetEnumValue;
|
||||||
|
extern LPALLISTENERF qalListenerf;
|
||||||
|
extern LPALLISTENER3F qalListener3f;
|
||||||
|
extern LPALLISTENERFV qalListenerfv;
|
||||||
|
extern LPALLISTENERI qalListeneri;
|
||||||
|
extern LPALLISTENER3I qalListener3i;
|
||||||
|
extern LPALLISTENERIV qalListeneriv;
|
||||||
|
extern LPALGETLISTENERF qalGetListenerf;
|
||||||
|
extern LPALGETLISTENER3F qalGetListener3f;
|
||||||
|
extern LPALGETLISTENERFV qalGetListenerfv;
|
||||||
|
extern LPALGETLISTENERI qalGetListeneri;
|
||||||
|
extern LPALGETLISTENER3I qalGetListener3i;
|
||||||
|
extern LPALGETLISTENERIV qalGetListeneriv;
|
||||||
|
extern LPALGENSOURCES qalGenSources;
|
||||||
|
extern LPALDELETESOURCES qalDeleteSources;
|
||||||
|
extern LPALISSOURCE qalIsSource;
|
||||||
|
extern LPALSOURCEF qalSourcef;
|
||||||
|
extern LPALSOURCE3F qalSource3f;
|
||||||
|
extern LPALSOURCEFV qalSourcefv;
|
||||||
|
extern LPALSOURCEI qalSourcei;
|
||||||
|
extern LPALSOURCE3I qalSource3i;
|
||||||
|
extern LPALSOURCEIV qalSourceiv;
|
||||||
|
extern LPALGETSOURCEF qalGetSourcef;
|
||||||
|
extern LPALGETSOURCE3F qalGetSource3f;
|
||||||
|
extern LPALGETSOURCEFV qalGetSourcefv;
|
||||||
|
extern LPALGETSOURCEI qalGetSourcei;
|
||||||
|
extern LPALGETSOURCE3I qalGetSource3i;
|
||||||
|
extern LPALGETSOURCEIV qalGetSourceiv;
|
||||||
|
extern LPALSOURCEPLAYV qalSourcePlayv;
|
||||||
|
extern LPALSOURCESTOPV qalSourceStopv;
|
||||||
|
extern LPALSOURCEREWINDV qalSourceRewindv;
|
||||||
|
extern LPALSOURCEPAUSEV qalSourcePausev;
|
||||||
|
extern LPALSOURCEPLAY qalSourcePlay;
|
||||||
|
extern LPALSOURCESTOP qalSourceStop;
|
||||||
|
extern LPALSOURCEREWIND qalSourceRewind;
|
||||||
|
extern LPALSOURCEPAUSE qalSourcePause;
|
||||||
|
extern LPALSOURCEQUEUEBUFFERS qalSourceQueueBuffers;
|
||||||
|
extern LPALSOURCEUNQUEUEBUFFERS qalSourceUnqueueBuffers;
|
||||||
|
extern LPALGENBUFFERS qalGenBuffers;
|
||||||
|
extern LPALDELETEBUFFERS qalDeleteBuffers;
|
||||||
|
extern LPALISBUFFER qalIsBuffer;
|
||||||
|
extern LPALBUFFERDATA qalBufferData;
|
||||||
|
extern LPALBUFFERF qalBufferf;
|
||||||
|
extern LPALBUFFER3F qalBuffer3f;
|
||||||
|
extern LPALBUFFERFV qalBufferfv;
|
||||||
|
extern LPALBUFFERF qalBufferi;
|
||||||
|
extern LPALBUFFER3F qalBuffer3i;
|
||||||
|
extern LPALBUFFERFV qalBufferiv;
|
||||||
|
extern LPALGETBUFFERF qalGetBufferf;
|
||||||
|
extern LPALGETBUFFER3F qalGetBuffer3f;
|
||||||
|
extern LPALGETBUFFERFV qalGetBufferfv;
|
||||||
|
extern LPALGETBUFFERI qalGetBufferi;
|
||||||
|
extern LPALGETBUFFER3I qalGetBuffer3i;
|
||||||
|
extern LPALGETBUFFERIV qalGetBufferiv;
|
||||||
|
extern LPALDOPPLERFACTOR qalDopplerFactor;
|
||||||
|
extern LPALDOPPLERVELOCITY qalDopplerVelocity;
|
||||||
|
extern LPALSPEEDOFSOUND qalSpeedOfSound;
|
||||||
|
extern LPALDISTANCEMODEL qalDistanceModel;
|
||||||
|
|
||||||
|
extern LPALCCREATECONTEXT qalcCreateContext;
|
||||||
|
extern LPALCMAKECONTEXTCURRENT qalcMakeContextCurrent;
|
||||||
|
extern LPALCPROCESSCONTEXT qalcProcessContext;
|
||||||
|
extern LPALCSUSPENDCONTEXT qalcSuspendContext;
|
||||||
|
extern LPALCDESTROYCONTEXT qalcDestroyContext;
|
||||||
|
extern LPALCGETCURRENTCONTEXT qalcGetCurrentContext;
|
||||||
|
extern LPALCGETCONTEXTSDEVICE qalcGetContextsDevice;
|
||||||
|
extern LPALCOPENDEVICE qalcOpenDevice;
|
||||||
|
extern LPALCCLOSEDEVICE qalcCloseDevice;
|
||||||
|
extern LPALCGETERROR qalcGetError;
|
||||||
|
extern LPALCISEXTENSIONPRESENT qalcIsExtensionPresent;
|
||||||
|
extern LPALCGETPROCADDRESS qalcGetProcAddress;
|
||||||
|
extern LPALCGETENUMVALUE qalcGetEnumValue;
|
||||||
|
extern LPALCGETSTRING qalcGetString;
|
||||||
|
extern LPALCGETINTEGERV qalcGetIntegerv;
|
||||||
|
extern LPALCCAPTUREOPENDEVICE qalcCaptureOpenDevice;
|
||||||
|
extern LPALCCAPTURECLOSEDEVICE qalcCaptureCloseDevice;
|
||||||
|
extern LPALCCAPTURESTART qalcCaptureStart;
|
||||||
|
extern LPALCCAPTURESTOP qalcCaptureStop;
|
||||||
|
extern LPALCCAPTURESAMPLES qalcCaptureSamples;
|
||||||
|
#else
|
||||||
#define qalEnable alEnable
|
#define qalEnable alEnable
|
||||||
#define qalDisable alDisable
|
#define qalDisable alDisable
|
||||||
#define qalIsEnabled alIsEnabled
|
#define qalIsEnabled alIsEnabled
|
||||||
|
@ -141,6 +237,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#define qalcCaptureStart alcCaptureStart
|
#define qalcCaptureStart alcCaptureStart
|
||||||
#define qalcCaptureStop alcCaptureStop
|
#define qalcCaptureStop alcCaptureStop
|
||||||
#define qalcCaptureSamples alcCaptureSamples
|
#define qalcCaptureSamples alcCaptureSamples
|
||||||
|
#endif
|
||||||
|
|
||||||
qboolean QAL_Init(const char *libname);
|
qboolean QAL_Init(const char *libname);
|
||||||
void QAL_Shutdown( void );
|
void QAL_Shutdown( void );
|
||||||
|
|
Loading…
Reference in a new issue