naev 0.11.5
nopenal.c
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#include "nopenal.h"
5
6/* Auxiliary Effect Slot. */
7ALvoid (AL_APIENTRY *nalGenAuxiliaryEffectSlots)(ALsizei,ALuint*);
8ALvoid (AL_APIENTRY *nalDeleteAuxiliaryEffectSlots)(ALsizei,ALuint*);
9ALboolean (AL_APIENTRY *nalIsAuxiliaryEffectSlot)(ALuint);
10ALvoid (AL_APIENTRY *nalAuxiliaryEffectSloti)(ALuint,ALenum,ALint);
11ALvoid (AL_APIENTRY *nalAuxiliaryEffectSlotiv)(ALuint,ALenum,ALint*);
12ALvoid (AL_APIENTRY *nalAuxiliaryEffectSlotf)(ALuint,ALenum,ALfloat);
13ALvoid (AL_APIENTRY *nalAuxiliaryEffectSlotfv)(ALuint,ALenum,ALfloat*);
14ALvoid (AL_APIENTRY *nalGetAuxiliaryEffectSloti)(ALuint,ALenum,ALint*);
15ALvoid (AL_APIENTRY *nalGetAuxiliaryEffectSlotiv)(ALuint,ALenum,ALint*);
16ALvoid (AL_APIENTRY *nalGetAuxiliaryEffectSlotf)(ALuint,ALenum,ALfloat*);
17ALvoid (AL_APIENTRY *nalGetAuxiliaryEffectSlotfv)(ALuint,ALenum,ALfloat*);
18/* Filter. */
19ALvoid (AL_APIENTRY *nalGenFilters)(ALsizei,ALuint*);
20ALvoid (AL_APIENTRY *nalDeleteFilters)(ALsizei,ALuint*);
21ALvoid (AL_APIENTRY *nalFilteri)(ALuint,ALenum,ALint);
22ALvoid (AL_APIENTRY *nalFilteriv)(ALuint,ALenum,ALint*);
23ALvoid (AL_APIENTRY *nalFilterf)(ALuint,ALenum,ALfloat);
24ALvoid (AL_APIENTRY *nalFilterfv)(ALuint,ALenum,ALfloat*);
25/* Effect. */
26ALvoid (AL_APIENTRY *nalGenEffects)(ALsizei,ALuint*);
27ALvoid (AL_APIENTRY *nalDeleteEffects)(ALsizei,ALuint*);
28ALvoid (AL_APIENTRY *nalEffecti)(ALuint,ALenum,ALint);
29ALvoid (AL_APIENTRY *nalEffectiv)(ALuint,ALenum,ALint*);
30ALvoid (AL_APIENTRY *nalEffectf)(ALuint,ALenum,ALfloat);
31ALvoid (AL_APIENTRY *nalEffectfv)(ALuint,ALenum,ALfloat*);
32
33
34#ifdef DEBUGGING
41void al_checkHandleError( ALenum err, const char *func, int line )
42{
43 const char *errstr;
44
45 /* No error. */
46 if (err == AL_NO_ERROR)
47 return;
48
49 /* Get the message. */
50 switch (err) {
51 case AL_INVALID_NAME:
52 errstr = _("a bad name (ID) was passed to an OpenAL function");
53 break;
54 case AL_INVALID_ENUM:
55 errstr = _("an invalid enum value was passed to an OpenAL function");
56 break;
57 case AL_INVALID_VALUE:
58 errstr = _("an invalid value was passed to an OpenAL function");
59 break;
60 case AL_INVALID_OPERATION:
61 errstr = _("the requested operation is not valid");
62 break;
63 case AL_OUT_OF_MEMORY:
64 errstr = _("the requested operation resulted in OpenAL running out of memory");
65 break;
66
67 default:
68 errstr = _("unknown error");
69 break;
70 }
71 WARN(_("OpenAL error [%s:%d]: %s"), func, line, errstr);
72}
73#endif /* DEBUGGING */