From 77f55da6c75d578fb67e6da2adec164c43bd234c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 Apr 2012 22:38:03 -0700 Subject: Use a macro to declare the function and enum list members --- Alc/ALc.c | 898 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 451 insertions(+), 447 deletions(-) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index 0fd15888..84c08641 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -107,468 +107,472 @@ typedef struct ALCenums { ALCenum value; } ALCenums; +#define DECL(x) { #x, (ALCvoid*)(x) } static const ALCfunction alcFunctions[] = { - { "alcCreateContext", (ALCvoid *) alcCreateContext }, - { "alcMakeContextCurrent", (ALCvoid *) alcMakeContextCurrent }, - { "alcProcessContext", (ALCvoid *) alcProcessContext }, - { "alcSuspendContext", (ALCvoid *) alcSuspendContext }, - { "alcDestroyContext", (ALCvoid *) alcDestroyContext }, - { "alcGetCurrentContext", (ALCvoid *) alcGetCurrentContext }, - { "alcGetContextsDevice", (ALCvoid *) alcGetContextsDevice }, - { "alcOpenDevice", (ALCvoid *) alcOpenDevice }, - { "alcCloseDevice", (ALCvoid *) alcCloseDevice }, - { "alcGetError", (ALCvoid *) alcGetError }, - { "alcIsExtensionPresent", (ALCvoid *) alcIsExtensionPresent }, - { "alcGetProcAddress", (ALCvoid *) alcGetProcAddress }, - { "alcGetEnumValue", (ALCvoid *) alcGetEnumValue }, - { "alcGetString", (ALCvoid *) alcGetString }, - { "alcGetIntegerv", (ALCvoid *) alcGetIntegerv }, - { "alcCaptureOpenDevice", (ALCvoid *) alcCaptureOpenDevice }, - { "alcCaptureCloseDevice", (ALCvoid *) alcCaptureCloseDevice }, - { "alcCaptureStart", (ALCvoid *) alcCaptureStart }, - { "alcCaptureStop", (ALCvoid *) alcCaptureStop }, - { "alcCaptureSamples", (ALCvoid *) alcCaptureSamples }, - - { "alcSetThreadContext", (ALCvoid *) alcSetThreadContext }, - { "alcGetThreadContext", (ALCvoid *) alcGetThreadContext }, - - { "alcLoopbackOpenDeviceSOFT", (ALCvoid *) alcLoopbackOpenDeviceSOFT}, - { "alcIsRenderFormatSupportedSOFT",(ALCvoid *) alcIsRenderFormatSupportedSOFT}, - { "alcRenderSamplesSOFT", (ALCvoid *) alcRenderSamplesSOFT }, - - { "alEnable", (ALCvoid *) alEnable }, - { "alDisable", (ALCvoid *) alDisable }, - { "alIsEnabled", (ALCvoid *) alIsEnabled }, - { "alGetString", (ALCvoid *) alGetString }, - { "alGetBooleanv", (ALCvoid *) alGetBooleanv }, - { "alGetIntegerv", (ALCvoid *) alGetIntegerv }, - { "alGetFloatv", (ALCvoid *) alGetFloatv }, - { "alGetDoublev", (ALCvoid *) alGetDoublev }, - { "alGetBoolean", (ALCvoid *) alGetBoolean }, - { "alGetInteger", (ALCvoid *) alGetInteger }, - { "alGetFloat", (ALCvoid *) alGetFloat }, - { "alGetDouble", (ALCvoid *) alGetDouble }, - { "alGetError", (ALCvoid *) alGetError }, - { "alIsExtensionPresent", (ALCvoid *) alIsExtensionPresent }, - { "alGetProcAddress", (ALCvoid *) alGetProcAddress }, - { "alGetEnumValue", (ALCvoid *) alGetEnumValue }, - { "alListenerf", (ALCvoid *) alListenerf }, - { "alListener3f", (ALCvoid *) alListener3f }, - { "alListenerfv", (ALCvoid *) alListenerfv }, - { "alListeneri", (ALCvoid *) alListeneri }, - { "alListener3i", (ALCvoid *) alListener3i }, - { "alListeneriv", (ALCvoid *) alListeneriv }, - { "alGetListenerf", (ALCvoid *) alGetListenerf }, - { "alGetListener3f", (ALCvoid *) alGetListener3f }, - { "alGetListenerfv", (ALCvoid *) alGetListenerfv }, - { "alGetListeneri", (ALCvoid *) alGetListeneri }, - { "alGetListener3i", (ALCvoid *) alGetListener3i }, - { "alGetListeneriv", (ALCvoid *) alGetListeneriv }, - { "alGenSources", (ALCvoid *) alGenSources }, - { "alDeleteSources", (ALCvoid *) alDeleteSources }, - { "alIsSource", (ALCvoid *) alIsSource }, - { "alSourcef", (ALCvoid *) alSourcef }, - { "alSource3f", (ALCvoid *) alSource3f }, - { "alSourcefv", (ALCvoid *) alSourcefv }, - { "alSourcei", (ALCvoid *) alSourcei }, - { "alSource3i", (ALCvoid *) alSource3i }, - { "alSourceiv", (ALCvoid *) alSourceiv }, - { "alGetSourcef", (ALCvoid *) alGetSourcef }, - { "alGetSource3f", (ALCvoid *) alGetSource3f }, - { "alGetSourcefv", (ALCvoid *) alGetSourcefv }, - { "alGetSourcei", (ALCvoid *) alGetSourcei }, - { "alGetSource3i", (ALCvoid *) alGetSource3i }, - { "alGetSourceiv", (ALCvoid *) alGetSourceiv }, - { "alSourcePlayv", (ALCvoid *) alSourcePlayv }, - { "alSourceStopv", (ALCvoid *) alSourceStopv }, - { "alSourceRewindv", (ALCvoid *) alSourceRewindv }, - { "alSourcePausev", (ALCvoid *) alSourcePausev }, - { "alSourcePlay", (ALCvoid *) alSourcePlay }, - { "alSourceStop", (ALCvoid *) alSourceStop }, - { "alSourceRewind", (ALCvoid *) alSourceRewind }, - { "alSourcePause", (ALCvoid *) alSourcePause }, - { "alSourceQueueBuffers", (ALCvoid *) alSourceQueueBuffers }, - { "alSourceUnqueueBuffers", (ALCvoid *) alSourceUnqueueBuffers }, - { "alGenBuffers", (ALCvoid *) alGenBuffers }, - { "alDeleteBuffers", (ALCvoid *) alDeleteBuffers }, - { "alIsBuffer", (ALCvoid *) alIsBuffer }, - { "alBufferData", (ALCvoid *) alBufferData }, - { "alBufferf", (ALCvoid *) alBufferf }, - { "alBuffer3f", (ALCvoid *) alBuffer3f }, - { "alBufferfv", (ALCvoid *) alBufferfv }, - { "alBufferi", (ALCvoid *) alBufferi }, - { "alBuffer3i", (ALCvoid *) alBuffer3i }, - { "alBufferiv", (ALCvoid *) alBufferiv }, - { "alGetBufferf", (ALCvoid *) alGetBufferf }, - { "alGetBuffer3f", (ALCvoid *) alGetBuffer3f }, - { "alGetBufferfv", (ALCvoid *) alGetBufferfv }, - { "alGetBufferi", (ALCvoid *) alGetBufferi }, - { "alGetBuffer3i", (ALCvoid *) alGetBuffer3i }, - { "alGetBufferiv", (ALCvoid *) alGetBufferiv }, - { "alDopplerFactor", (ALCvoid *) alDopplerFactor }, - { "alDopplerVelocity", (ALCvoid *) alDopplerVelocity }, - { "alSpeedOfSound", (ALCvoid *) alSpeedOfSound }, - { "alDistanceModel", (ALCvoid *) alDistanceModel }, - - { "alGenFilters", (ALCvoid *) alGenFilters }, - { "alDeleteFilters", (ALCvoid *) alDeleteFilters }, - { "alIsFilter", (ALCvoid *) alIsFilter }, - { "alFilteri", (ALCvoid *) alFilteri }, - { "alFilteriv", (ALCvoid *) alFilteriv }, - { "alFilterf", (ALCvoid *) alFilterf }, - { "alFilterfv", (ALCvoid *) alFilterfv }, - { "alGetFilteri", (ALCvoid *) alGetFilteri }, - { "alGetFilteriv", (ALCvoid *) alGetFilteriv }, - { "alGetFilterf", (ALCvoid *) alGetFilterf }, - { "alGetFilterfv", (ALCvoid *) alGetFilterfv }, - { "alGenEffects", (ALCvoid *) alGenEffects }, - { "alDeleteEffects", (ALCvoid *) alDeleteEffects }, - { "alIsEffect", (ALCvoid *) alIsEffect }, - { "alEffecti", (ALCvoid *) alEffecti }, - { "alEffectiv", (ALCvoid *) alEffectiv }, - { "alEffectf", (ALCvoid *) alEffectf }, - { "alEffectfv", (ALCvoid *) alEffectfv }, - { "alGetEffecti", (ALCvoid *) alGetEffecti }, - { "alGetEffectiv", (ALCvoid *) alGetEffectiv }, - { "alGetEffectf", (ALCvoid *) alGetEffectf }, - { "alGetEffectfv", (ALCvoid *) alGetEffectfv }, - { "alGenAuxiliaryEffectSlots", (ALCvoid *) alGenAuxiliaryEffectSlots}, - { "alDeleteAuxiliaryEffectSlots",(ALCvoid *) alDeleteAuxiliaryEffectSlots}, - { "alIsAuxiliaryEffectSlot", (ALCvoid *) alIsAuxiliaryEffectSlot }, - { "alAuxiliaryEffectSloti", (ALCvoid *) alAuxiliaryEffectSloti }, - { "alAuxiliaryEffectSlotiv", (ALCvoid *) alAuxiliaryEffectSlotiv }, - { "alAuxiliaryEffectSlotf", (ALCvoid *) alAuxiliaryEffectSlotf }, - { "alAuxiliaryEffectSlotfv", (ALCvoid *) alAuxiliaryEffectSlotfv }, - { "alGetAuxiliaryEffectSloti", (ALCvoid *) alGetAuxiliaryEffectSloti}, - { "alGetAuxiliaryEffectSlotiv", (ALCvoid *) alGetAuxiliaryEffectSlotiv}, - { "alGetAuxiliaryEffectSlotf", (ALCvoid *) alGetAuxiliaryEffectSlotf}, - { "alGetAuxiliaryEffectSlotfv", (ALCvoid *) alGetAuxiliaryEffectSlotfv}, - - { "alBufferSubDataSOFT", (ALCvoid *) alBufferSubDataSOFT }, - - { "alBufferSamplesSOFT", (ALCvoid *) alBufferSamplesSOFT }, - { "alBufferSubSamplesSOFT", (ALCvoid *) alBufferSubSamplesSOFT }, - { "alGetBufferSamplesSOFT", (ALCvoid *) alGetBufferSamplesSOFT }, - { "alIsBufferFormatSupportedSOFT",(ALCvoid *) alIsBufferFormatSupportedSOFT}, - - { "alDeferUpdatesSOFT", (ALCvoid *) alDeferUpdatesSOFT }, - { "alProcessUpdatesSOFT", (ALCvoid *) alProcessUpdatesSOFT }, - - { NULL, (ALCvoid *) NULL } + DECL(alcCreateContext), + DECL(alcMakeContextCurrent), + DECL(alcProcessContext), + DECL(alcSuspendContext), + DECL(alcDestroyContext), + DECL(alcGetCurrentContext), + DECL(alcGetContextsDevice), + DECL(alcOpenDevice), + DECL(alcCloseDevice), + DECL(alcGetError), + DECL(alcIsExtensionPresent), + DECL(alcGetProcAddress), + DECL(alcGetEnumValue), + DECL(alcGetString), + DECL(alcGetIntegerv), + DECL(alcCaptureOpenDevice), + DECL(alcCaptureCloseDevice), + DECL(alcCaptureStart), + DECL(alcCaptureStop), + DECL(alcCaptureSamples), + + DECL(alcSetThreadContext), + DECL(alcGetThreadContext), + + DECL(alcLoopbackOpenDeviceSOFT), + DECL(alcIsRenderFormatSupportedSOFT), + DECL(alcRenderSamplesSOFT), + + DECL(alEnable), + DECL(alDisable), + DECL(alIsEnabled), + DECL(alGetString), + DECL(alGetBooleanv), + DECL(alGetIntegerv), + DECL(alGetFloatv), + DECL(alGetDoublev), + DECL(alGetBoolean), + DECL(alGetInteger), + DECL(alGetFloat), + DECL(alGetDouble), + DECL(alGetError), + DECL(alIsExtensionPresent), + DECL(alGetProcAddress), + DECL(alGetEnumValue), + DECL(alListenerf), + DECL(alListener3f), + DECL(alListenerfv), + DECL(alListeneri), + DECL(alListener3i), + DECL(alListeneriv), + DECL(alGetListenerf), + DECL(alGetListener3f), + DECL(alGetListenerfv), + DECL(alGetListeneri), + DECL(alGetListener3i), + DECL(alGetListeneriv), + DECL(alGenSources), + DECL(alDeleteSources), + DECL(alIsSource), + DECL(alSourcef), + DECL(alSource3f), + DECL(alSourcefv), + DECL(alSourcei), + DECL(alSource3i), + DECL(alSourceiv), + DECL(alGetSourcef), + DECL(alGetSource3f), + DECL(alGetSourcefv), + DECL(alGetSourcei), + DECL(alGetSource3i), + DECL(alGetSourceiv), + DECL(alSourcePlayv), + DECL(alSourceStopv), + DECL(alSourceRewindv), + DECL(alSourcePausev), + DECL(alSourcePlay), + DECL(alSourceStop), + DECL(alSourceRewind), + DECL(alSourcePause), + DECL(alSourceQueueBuffers), + DECL(alSourceUnqueueBuffers), + DECL(alGenBuffers), + DECL(alDeleteBuffers), + DECL(alIsBuffer), + DECL(alBufferData), + DECL(alBufferf), + DECL(alBuffer3f), + DECL(alBufferfv), + DECL(alBufferi), + DECL(alBuffer3i), + DECL(alBufferiv), + DECL(alGetBufferf), + DECL(alGetBuffer3f), + DECL(alGetBufferfv), + DECL(alGetBufferi), + DECL(alGetBuffer3i), + DECL(alGetBufferiv), + DECL(alDopplerFactor), + DECL(alDopplerVelocity), + DECL(alSpeedOfSound), + DECL(alDistanceModel), + + DECL(alGenFilters), + DECL(alDeleteFilters), + DECL(alIsFilter), + DECL(alFilteri), + DECL(alFilteriv), + DECL(alFilterf), + DECL(alFilterfv), + DECL(alGetFilteri), + DECL(alGetFilteriv), + DECL(alGetFilterf), + DECL(alGetFilterfv), + DECL(alGenEffects), + DECL(alDeleteEffects), + DECL(alIsEffect), + DECL(alEffecti), + DECL(alEffectiv), + DECL(alEffectf), + DECL(alEffectfv), + DECL(alGetEffecti), + DECL(alGetEffectiv), + DECL(alGetEffectf), + DECL(alGetEffectfv), + DECL(alGenAuxiliaryEffectSlots), + DECL(alDeleteAuxiliaryEffectSlots), + DECL(alIsAuxiliaryEffectSlot), + DECL(alAuxiliaryEffectSloti), + DECL(alAuxiliaryEffectSlotiv), + DECL(alAuxiliaryEffectSlotf), + DECL(alAuxiliaryEffectSlotfv), + DECL(alGetAuxiliaryEffectSloti), + DECL(alGetAuxiliaryEffectSlotiv), + DECL(alGetAuxiliaryEffectSlotf), + DECL(alGetAuxiliaryEffectSlotfv), + + DECL(alBufferSubDataSOFT), + + DECL(alBufferSamplesSOFT), + DECL(alBufferSubSamplesSOFT), + DECL(alGetBufferSamplesSOFT), + DECL(alIsBufferFormatSupportedSOFT), + + DECL(alDeferUpdatesSOFT), + DECL(alProcessUpdatesSOFT), + + { NULL, NULL } }; +#undef DECL +#define DECL(x) { #x, (x) } static const ALCenums enumeration[] = { - { "ALC_INVALID", ALC_INVALID }, - { "ALC_FALSE", ALC_FALSE }, - { "ALC_TRUE", ALC_TRUE }, - - { "ALC_MAJOR_VERSION", ALC_MAJOR_VERSION }, - { "ALC_MINOR_VERSION", ALC_MINOR_VERSION }, - { "ALC_ATTRIBUTES_SIZE", ALC_ATTRIBUTES_SIZE }, - { "ALC_ALL_ATTRIBUTES", ALC_ALL_ATTRIBUTES }, - { "ALC_DEFAULT_DEVICE_SPECIFIER", ALC_DEFAULT_DEVICE_SPECIFIER }, - { "ALC_DEVICE_SPECIFIER", ALC_DEVICE_SPECIFIER }, - { "ALC_ALL_DEVICES_SPECIFIER", ALC_ALL_DEVICES_SPECIFIER }, - { "ALC_DEFAULT_ALL_DEVICES_SPECIFIER", ALC_DEFAULT_ALL_DEVICES_SPECIFIER }, - { "ALC_EXTENSIONS", ALC_EXTENSIONS }, - { "ALC_FREQUENCY", ALC_FREQUENCY }, - { "ALC_REFRESH", ALC_REFRESH }, - { "ALC_SYNC", ALC_SYNC }, - { "ALC_MONO_SOURCES", ALC_MONO_SOURCES }, - { "ALC_STEREO_SOURCES", ALC_STEREO_SOURCES }, - { "ALC_CAPTURE_DEVICE_SPECIFIER", ALC_CAPTURE_DEVICE_SPECIFIER }, - { "ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER", ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER}, - { "ALC_CAPTURE_SAMPLES", ALC_CAPTURE_SAMPLES }, - { "ALC_CONNECTED", ALC_CONNECTED }, - - { "ALC_EFX_MAJOR_VERSION", ALC_EFX_MAJOR_VERSION }, - { "ALC_EFX_MINOR_VERSION", ALC_EFX_MINOR_VERSION }, - { "ALC_MAX_AUXILIARY_SENDS", ALC_MAX_AUXILIARY_SENDS }, - - { "ALC_FORMAT_CHANNELS_SOFT", ALC_FORMAT_CHANNELS_SOFT }, - { "ALC_FORMAT_TYPE_SOFT", ALC_FORMAT_TYPE_SOFT }, - - { "ALC_MONO_SOFT", ALC_MONO_SOFT }, - { "ALC_STEREO_SOFT", ALC_STEREO_SOFT }, - { "ALC_QUAD_SOFT", ALC_QUAD_SOFT }, - { "ALC_5POINT1_SOFT", ALC_5POINT1_SOFT }, - { "ALC_6POINT1_SOFT", ALC_6POINT1_SOFT }, - { "ALC_7POINT1_SOFT", ALC_7POINT1_SOFT }, - - { "ALC_BYTE_SOFT", ALC_BYTE_SOFT }, - { "ALC_UNSIGNED_BYTE_SOFT", ALC_UNSIGNED_BYTE_SOFT }, - { "ALC_SHORT_SOFT", ALC_SHORT_SOFT }, - { "ALC_UNSIGNED_SHORT_SOFT", ALC_UNSIGNED_SHORT_SOFT }, - { "ALC_INT_SOFT", ALC_INT_SOFT }, - { "ALC_UNSIGNED_INT_SOFT", ALC_UNSIGNED_INT_SOFT }, - { "ALC_FLOAT_SOFT", ALC_FLOAT_SOFT }, - - { "ALC_NO_ERROR", ALC_NO_ERROR }, - { "ALC_INVALID_DEVICE", ALC_INVALID_DEVICE }, - { "ALC_INVALID_CONTEXT", ALC_INVALID_CONTEXT }, - { "ALC_INVALID_ENUM", ALC_INVALID_ENUM }, - { "ALC_INVALID_VALUE", ALC_INVALID_VALUE }, - { "ALC_OUT_OF_MEMORY", ALC_OUT_OF_MEMORY }, - - - { "AL_INVALID", AL_INVALID }, - { "AL_NONE", AL_NONE }, - { "AL_FALSE", AL_FALSE }, - { "AL_TRUE", AL_TRUE }, - - { "AL_SOURCE_RELATIVE", AL_SOURCE_RELATIVE }, - { "AL_CONE_INNER_ANGLE", AL_CONE_INNER_ANGLE }, - { "AL_CONE_OUTER_ANGLE", AL_CONE_OUTER_ANGLE }, - { "AL_PITCH", AL_PITCH }, - { "AL_POSITION", AL_POSITION }, - { "AL_DIRECTION", AL_DIRECTION }, - { "AL_VELOCITY", AL_VELOCITY }, - { "AL_LOOPING", AL_LOOPING }, - { "AL_BUFFER", AL_BUFFER }, - { "AL_GAIN", AL_GAIN }, - { "AL_MIN_GAIN", AL_MIN_GAIN }, - { "AL_MAX_GAIN", AL_MAX_GAIN }, - { "AL_ORIENTATION", AL_ORIENTATION }, - { "AL_REFERENCE_DISTANCE", AL_REFERENCE_DISTANCE }, - { "AL_ROLLOFF_FACTOR", AL_ROLLOFF_FACTOR }, - { "AL_CONE_OUTER_GAIN", AL_CONE_OUTER_GAIN }, - { "AL_MAX_DISTANCE", AL_MAX_DISTANCE }, - { "AL_SEC_OFFSET", AL_SEC_OFFSET }, - { "AL_SAMPLE_OFFSET", AL_SAMPLE_OFFSET }, - { "AL_SAMPLE_RW_OFFSETS_SOFT", AL_SAMPLE_RW_OFFSETS_SOFT }, - { "AL_BYTE_OFFSET", AL_BYTE_OFFSET }, - { "AL_BYTE_RW_OFFSETS_SOFT", AL_BYTE_RW_OFFSETS_SOFT }, - { "AL_SOURCE_TYPE", AL_SOURCE_TYPE }, - { "AL_STATIC", AL_STATIC }, - { "AL_STREAMING", AL_STREAMING }, - { "AL_UNDETERMINED", AL_UNDETERMINED }, - { "AL_METERS_PER_UNIT", AL_METERS_PER_UNIT }, - { "AL_DIRECT_CHANNELS_SOFT", AL_DIRECT_CHANNELS_SOFT }, - - { "AL_DIRECT_FILTER", AL_DIRECT_FILTER }, - { "AL_AUXILIARY_SEND_FILTER", AL_AUXILIARY_SEND_FILTER }, - { "AL_AIR_ABSORPTION_FACTOR", AL_AIR_ABSORPTION_FACTOR }, - { "AL_ROOM_ROLLOFF_FACTOR", AL_ROOM_ROLLOFF_FACTOR }, - { "AL_CONE_OUTER_GAINHF", AL_CONE_OUTER_GAINHF }, - { "AL_DIRECT_FILTER_GAINHF_AUTO", AL_DIRECT_FILTER_GAINHF_AUTO }, - { "AL_AUXILIARY_SEND_FILTER_GAIN_AUTO", AL_AUXILIARY_SEND_FILTER_GAIN_AUTO }, - { "AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO", AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO}, - - { "AL_SOURCE_STATE", AL_SOURCE_STATE }, - { "AL_INITIAL", AL_INITIAL }, - { "AL_PLAYING", AL_PLAYING }, - { "AL_PAUSED", AL_PAUSED }, - { "AL_STOPPED", AL_STOPPED }, - - { "AL_BUFFERS_QUEUED", AL_BUFFERS_QUEUED }, - { "AL_BUFFERS_PROCESSED", AL_BUFFERS_PROCESSED }, - - { "AL_FORMAT_MONO8", AL_FORMAT_MONO8 }, - { "AL_FORMAT_MONO16", AL_FORMAT_MONO16 }, - { "AL_FORMAT_MONO_FLOAT32", AL_FORMAT_MONO_FLOAT32 }, - { "AL_FORMAT_MONO_DOUBLE_EXT", AL_FORMAT_MONO_DOUBLE_EXT }, - { "AL_FORMAT_STEREO8", AL_FORMAT_STEREO8 }, - { "AL_FORMAT_STEREO16", AL_FORMAT_STEREO16 }, - { "AL_FORMAT_STEREO_FLOAT32", AL_FORMAT_STEREO_FLOAT32 }, - { "AL_FORMAT_STEREO_DOUBLE_EXT", AL_FORMAT_STEREO_DOUBLE_EXT }, - { "AL_FORMAT_MONO_IMA4", AL_FORMAT_MONO_IMA4 }, - { "AL_FORMAT_STEREO_IMA4", AL_FORMAT_STEREO_IMA4 }, - { "AL_FORMAT_QUAD8_LOKI", AL_FORMAT_QUAD8_LOKI }, - { "AL_FORMAT_QUAD16_LOKI", AL_FORMAT_QUAD16_LOKI }, - { "AL_FORMAT_QUAD8", AL_FORMAT_QUAD8 }, - { "AL_FORMAT_QUAD16", AL_FORMAT_QUAD16 }, - { "AL_FORMAT_QUAD32", AL_FORMAT_QUAD32 }, - { "AL_FORMAT_51CHN8", AL_FORMAT_51CHN8 }, - { "AL_FORMAT_51CHN16", AL_FORMAT_51CHN16 }, - { "AL_FORMAT_51CHN32", AL_FORMAT_51CHN32 }, - { "AL_FORMAT_61CHN8", AL_FORMAT_61CHN8 }, - { "AL_FORMAT_61CHN16", AL_FORMAT_61CHN16 }, - { "AL_FORMAT_61CHN32", AL_FORMAT_61CHN32 }, - { "AL_FORMAT_71CHN8", AL_FORMAT_71CHN8 }, - { "AL_FORMAT_71CHN16", AL_FORMAT_71CHN16 }, - { "AL_FORMAT_71CHN32", AL_FORMAT_71CHN32 }, - { "AL_FORMAT_REAR8", AL_FORMAT_REAR8 }, - { "AL_FORMAT_REAR16", AL_FORMAT_REAR16 }, - { "AL_FORMAT_REAR32", AL_FORMAT_REAR32 }, - { "AL_FORMAT_MONO_MULAW", AL_FORMAT_MONO_MULAW }, - { "AL_FORMAT_MONO_MULAW_EXT", AL_FORMAT_MONO_MULAW_EXT }, - { "AL_FORMAT_STEREO_MULAW", AL_FORMAT_STEREO_MULAW }, - { "AL_FORMAT_STEREO_MULAW_EXT", AL_FORMAT_STEREO_MULAW_EXT }, - { "AL_FORMAT_QUAD_MULAW", AL_FORMAT_QUAD_MULAW }, - { "AL_FORMAT_51CHN_MULAW", AL_FORMAT_51CHN_MULAW }, - { "AL_FORMAT_61CHN_MULAW", AL_FORMAT_61CHN_MULAW }, - { "AL_FORMAT_71CHN_MULAW", AL_FORMAT_71CHN_MULAW }, - { "AL_FORMAT_REAR_MULAW", AL_FORMAT_REAR_MULAW }, - { "AL_FORMAT_MONO_ALAW_EXT", AL_FORMAT_MONO_ALAW_EXT }, - { "AL_FORMAT_STEREO_ALAW_EXT", AL_FORMAT_STEREO_ALAW_EXT }, - - { "AL_MONO8_SOFT", AL_MONO8_SOFT }, - { "AL_MONO16_SOFT", AL_MONO16_SOFT }, - { "AL_MONO32F_SOFT", AL_MONO32F_SOFT }, - { "AL_STEREO8_SOFT", AL_STEREO8_SOFT }, - { "AL_STEREO16_SOFT", AL_STEREO16_SOFT }, - { "AL_STEREO32F_SOFT", AL_STEREO32F_SOFT }, - { "AL_QUAD8_SOFT", AL_QUAD8_SOFT }, - { "AL_QUAD16_SOFT", AL_QUAD16_SOFT }, - { "AL_QUAD32F_SOFT", AL_QUAD32F_SOFT }, - { "AL_REAR8_SOFT", AL_REAR8_SOFT }, - { "AL_REAR16_SOFT", AL_REAR16_SOFT }, - { "AL_REAR32F_SOFT", AL_REAR32F_SOFT }, - { "AL_5POINT1_8_SOFT", AL_5POINT1_8_SOFT }, - { "AL_5POINT1_16_SOFT", AL_5POINT1_16_SOFT }, - { "AL_5POINT1_32F_SOFT", AL_5POINT1_32F_SOFT }, - { "AL_6POINT1_8_SOFT", AL_6POINT1_8_SOFT }, - { "AL_6POINT1_16_SOFT", AL_6POINT1_16_SOFT }, - { "AL_6POINT1_32F_SOFT", AL_6POINT1_32F_SOFT }, - { "AL_7POINT1_8_SOFT", AL_7POINT1_8_SOFT }, - { "AL_7POINT1_16_SOFT", AL_7POINT1_16_SOFT }, - { "AL_7POINT1_32F_SOFT", AL_7POINT1_32F_SOFT }, - - { "AL_MONO_SOFT", AL_MONO_SOFT }, - { "AL_STEREO_SOFT", AL_STEREO_SOFT }, - { "AL_QUAD_SOFT", AL_QUAD_SOFT }, - { "AL_REAR_SOFT", AL_REAR_SOFT }, - { "AL_5POINT1_SOFT", AL_5POINT1_SOFT }, - { "AL_6POINT1_SOFT", AL_6POINT1_SOFT }, - { "AL_7POINT1_SOFT", AL_7POINT1_SOFT }, - - { "AL_BYTE_SOFT", AL_BYTE_SOFT }, - { "AL_UNSIGNED_BYTE_SOFT", AL_UNSIGNED_BYTE_SOFT }, - { "AL_SHORT_SOFT", AL_SHORT_SOFT }, - { "AL_UNSIGNED_SHORT_SOFT", AL_UNSIGNED_SHORT_SOFT }, - { "AL_INT_SOFT", AL_INT_SOFT }, - { "AL_UNSIGNED_INT_SOFT", AL_UNSIGNED_INT_SOFT }, - { "AL_FLOAT_SOFT", AL_FLOAT_SOFT }, - { "AL_DOUBLE_SOFT", AL_DOUBLE_SOFT }, - { "AL_BYTE3_SOFT", AL_BYTE3_SOFT }, - { "AL_UNSIGNED_BYTE3_SOFT", AL_UNSIGNED_BYTE3_SOFT }, - - { "AL_FREQUENCY", AL_FREQUENCY }, - { "AL_BITS", AL_BITS }, - { "AL_CHANNELS", AL_CHANNELS }, - { "AL_SIZE", AL_SIZE }, - { "AL_INTERNAL_FORMAT_SOFT", AL_INTERNAL_FORMAT_SOFT }, - { "AL_BYTE_LENGTH_SOFT", AL_BYTE_LENGTH_SOFT }, - { "AL_SAMPLE_LENGTH_SOFT", AL_SAMPLE_LENGTH_SOFT }, - { "AL_SEC_LENGTH_SOFT", AL_SEC_LENGTH_SOFT }, - - { "AL_UNUSED", AL_UNUSED }, - { "AL_PENDING", AL_PENDING }, - { "AL_PROCESSED", AL_PROCESSED }, - - { "AL_NO_ERROR", AL_NO_ERROR }, - { "AL_INVALID_NAME", AL_INVALID_NAME }, - { "AL_INVALID_ENUM", AL_INVALID_ENUM }, - { "AL_INVALID_VALUE", AL_INVALID_VALUE }, - { "AL_INVALID_OPERATION", AL_INVALID_OPERATION }, - { "AL_OUT_OF_MEMORY", AL_OUT_OF_MEMORY }, - - { "AL_VENDOR", AL_VENDOR }, - { "AL_VERSION", AL_VERSION }, - { "AL_RENDERER", AL_RENDERER }, - { "AL_EXTENSIONS", AL_EXTENSIONS }, - - { "AL_DOPPLER_FACTOR", AL_DOPPLER_FACTOR }, - { "AL_DOPPLER_VELOCITY", AL_DOPPLER_VELOCITY }, - { "AL_DISTANCE_MODEL", AL_DISTANCE_MODEL }, - { "AL_SPEED_OF_SOUND", AL_SPEED_OF_SOUND }, - { "AL_SOURCE_DISTANCE_MODEL", AL_SOURCE_DISTANCE_MODEL }, - { "AL_DEFERRED_UPDATES_SOFT", AL_DEFERRED_UPDATES_SOFT }, - - { "AL_INVERSE_DISTANCE", AL_INVERSE_DISTANCE }, - { "AL_INVERSE_DISTANCE_CLAMPED", AL_INVERSE_DISTANCE_CLAMPED }, - { "AL_LINEAR_DISTANCE", AL_LINEAR_DISTANCE }, - { "AL_LINEAR_DISTANCE_CLAMPED", AL_LINEAR_DISTANCE_CLAMPED }, - { "AL_EXPONENT_DISTANCE", AL_EXPONENT_DISTANCE }, - { "AL_EXPONENT_DISTANCE_CLAMPED", AL_EXPONENT_DISTANCE_CLAMPED }, - - { "AL_FILTER_TYPE", AL_FILTER_TYPE }, - { "AL_FILTER_NULL", AL_FILTER_NULL }, - { "AL_FILTER_LOWPASS", AL_FILTER_LOWPASS }, + DECL(ALC_INVALID), + DECL(ALC_FALSE), + DECL(ALC_TRUE), + + DECL(ALC_MAJOR_VERSION), + DECL(ALC_MINOR_VERSION), + DECL(ALC_ATTRIBUTES_SIZE), + DECL(ALC_ALL_ATTRIBUTES), + DECL(ALC_DEFAULT_DEVICE_SPECIFIER), + DECL(ALC_DEVICE_SPECIFIER), + DECL(ALC_ALL_DEVICES_SPECIFIER), + DECL(ALC_DEFAULT_ALL_DEVICES_SPECIFIER), + DECL(ALC_EXTENSIONS), + DECL(ALC_FREQUENCY), + DECL(ALC_REFRESH), + DECL(ALC_SYNC), + DECL(ALC_MONO_SOURCES), + DECL(ALC_STEREO_SOURCES), + DECL(ALC_CAPTURE_DEVICE_SPECIFIER), + DECL(ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER), + DECL(ALC_CAPTURE_SAMPLES), + DECL(ALC_CONNECTED), + + DECL(ALC_EFX_MAJOR_VERSION), + DECL(ALC_EFX_MINOR_VERSION), + DECL(ALC_MAX_AUXILIARY_SENDS), + + DECL(ALC_FORMAT_CHANNELS_SOFT), + DECL(ALC_FORMAT_TYPE_SOFT), + + DECL(ALC_MONO_SOFT), + DECL(ALC_STEREO_SOFT), + DECL(ALC_QUAD_SOFT), + DECL(ALC_5POINT1_SOFT), + DECL(ALC_6POINT1_SOFT), + DECL(ALC_7POINT1_SOFT), + + DECL(ALC_BYTE_SOFT), + DECL(ALC_UNSIGNED_BYTE_SOFT), + DECL(ALC_SHORT_SOFT), + DECL(ALC_UNSIGNED_SHORT_SOFT), + DECL(ALC_INT_SOFT), + DECL(ALC_UNSIGNED_INT_SOFT), + DECL(ALC_FLOAT_SOFT), + + DECL(ALC_NO_ERROR), + DECL(ALC_INVALID_DEVICE), + DECL(ALC_INVALID_CONTEXT), + DECL(ALC_INVALID_ENUM), + DECL(ALC_INVALID_VALUE), + DECL(ALC_OUT_OF_MEMORY), + + + DECL(AL_INVALID), + DECL(AL_NONE), + DECL(AL_FALSE), + DECL(AL_TRUE), + + DECL(AL_SOURCE_RELATIVE), + DECL(AL_CONE_INNER_ANGLE), + DECL(AL_CONE_OUTER_ANGLE), + DECL(AL_PITCH), + DECL(AL_POSITION), + DECL(AL_DIRECTION), + DECL(AL_VELOCITY), + DECL(AL_LOOPING), + DECL(AL_BUFFER), + DECL(AL_GAIN), + DECL(AL_MIN_GAIN), + DECL(AL_MAX_GAIN), + DECL(AL_ORIENTATION), + DECL(AL_REFERENCE_DISTANCE), + DECL(AL_ROLLOFF_FACTOR), + DECL(AL_CONE_OUTER_GAIN), + DECL(AL_MAX_DISTANCE), + DECL(AL_SEC_OFFSET), + DECL(AL_SAMPLE_OFFSET), + DECL(AL_SAMPLE_RW_OFFSETS_SOFT), + DECL(AL_BYTE_OFFSET), + DECL(AL_BYTE_RW_OFFSETS_SOFT), + DECL(AL_SOURCE_TYPE), + DECL(AL_STATIC), + DECL(AL_STREAMING), + DECL(AL_UNDETERMINED), + DECL(AL_METERS_PER_UNIT), + DECL(AL_DIRECT_CHANNELS_SOFT), + + DECL(AL_DIRECT_FILTER), + DECL(AL_AUXILIARY_SEND_FILTER), + DECL(AL_AIR_ABSORPTION_FACTOR), + DECL(AL_ROOM_ROLLOFF_FACTOR), + DECL(AL_CONE_OUTER_GAINHF), + DECL(AL_DIRECT_FILTER_GAINHF_AUTO), + DECL(AL_AUXILIARY_SEND_FILTER_GAIN_AUTO), + DECL(AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO), + + DECL(AL_SOURCE_STATE), + DECL(AL_INITIAL), + DECL(AL_PLAYING), + DECL(AL_PAUSED), + DECL(AL_STOPPED), + + DECL(AL_BUFFERS_QUEUED), + DECL(AL_BUFFERS_PROCESSED), + + DECL(AL_FORMAT_MONO8), + DECL(AL_FORMAT_MONO16), + DECL(AL_FORMAT_MONO_FLOAT32), + DECL(AL_FORMAT_MONO_DOUBLE_EXT), + DECL(AL_FORMAT_STEREO8), + DECL(AL_FORMAT_STEREO16), + DECL(AL_FORMAT_STEREO_FLOAT32), + DECL(AL_FORMAT_STEREO_DOUBLE_EXT), + DECL(AL_FORMAT_MONO_IMA4), + DECL(AL_FORMAT_STEREO_IMA4), + DECL(AL_FORMAT_QUAD8_LOKI), + DECL(AL_FORMAT_QUAD16_LOKI), + DECL(AL_FORMAT_QUAD8), + DECL(AL_FORMAT_QUAD16), + DECL(AL_FORMAT_QUAD32), + DECL(AL_FORMAT_51CHN8), + DECL(AL_FORMAT_51CHN16), + DECL(AL_FORMAT_51CHN32), + DECL(AL_FORMAT_61CHN8), + DECL(AL_FORMAT_61CHN16), + DECL(AL_FORMAT_61CHN32), + DECL(AL_FORMAT_71CHN8), + DECL(AL_FORMAT_71CHN16), + DECL(AL_FORMAT_71CHN32), + DECL(AL_FORMAT_REAR8), + DECL(AL_FORMAT_REAR16), + DECL(AL_FORMAT_REAR32), + DECL(AL_FORMAT_MONO_MULAW), + DECL(AL_FORMAT_MONO_MULAW_EXT), + DECL(AL_FORMAT_STEREO_MULAW), + DECL(AL_FORMAT_STEREO_MULAW_EXT), + DECL(AL_FORMAT_QUAD_MULAW), + DECL(AL_FORMAT_51CHN_MULAW), + DECL(AL_FORMAT_61CHN_MULAW), + DECL(AL_FORMAT_71CHN_MULAW), + DECL(AL_FORMAT_REAR_MULAW), + DECL(AL_FORMAT_MONO_ALAW_EXT), + DECL(AL_FORMAT_STEREO_ALAW_EXT), + + DECL(AL_MONO8_SOFT), + DECL(AL_MONO16_SOFT), + DECL(AL_MONO32F_SOFT), + DECL(AL_STEREO8_SOFT), + DECL(AL_STEREO16_SOFT), + DECL(AL_STEREO32F_SOFT), + DECL(AL_QUAD8_SOFT), + DECL(AL_QUAD16_SOFT), + DECL(AL_QUAD32F_SOFT), + DECL(AL_REAR8_SOFT), + DECL(AL_REAR16_SOFT), + DECL(AL_REAR32F_SOFT), + DECL(AL_5POINT1_8_SOFT), + DECL(AL_5POINT1_16_SOFT), + DECL(AL_5POINT1_32F_SOFT), + DECL(AL_6POINT1_8_SOFT), + DECL(AL_6POINT1_16_SOFT), + DECL(AL_6POINT1_32F_SOFT), + DECL(AL_7POINT1_8_SOFT), + DECL(AL_7POINT1_16_SOFT), + DECL(AL_7POINT1_32F_SOFT), + + DECL(AL_MONO_SOFT), + DECL(AL_STEREO_SOFT), + DECL(AL_QUAD_SOFT), + DECL(AL_REAR_SOFT), + DECL(AL_5POINT1_SOFT), + DECL(AL_6POINT1_SOFT), + DECL(AL_7POINT1_SOFT), + + DECL(AL_BYTE_SOFT), + DECL(AL_UNSIGNED_BYTE_SOFT), + DECL(AL_SHORT_SOFT), + DECL(AL_UNSIGNED_SHORT_SOFT), + DECL(AL_INT_SOFT), + DECL(AL_UNSIGNED_INT_SOFT), + DECL(AL_FLOAT_SOFT), + DECL(AL_DOUBLE_SOFT), + DECL(AL_BYTE3_SOFT), + DECL(AL_UNSIGNED_BYTE3_SOFT), + + DECL(AL_FREQUENCY), + DECL(AL_BITS), + DECL(AL_CHANNELS), + DECL(AL_SIZE), + DECL(AL_INTERNAL_FORMAT_SOFT), + DECL(AL_BYTE_LENGTH_SOFT), + DECL(AL_SAMPLE_LENGTH_SOFT), + DECL(AL_SEC_LENGTH_SOFT), + + DECL(AL_UNUSED), + DECL(AL_PENDING), + DECL(AL_PROCESSED), + + DECL(AL_NO_ERROR), + DECL(AL_INVALID_NAME), + DECL(AL_INVALID_ENUM), + DECL(AL_INVALID_VALUE), + DECL(AL_INVALID_OPERATION), + DECL(AL_OUT_OF_MEMORY), + + DECL(AL_VENDOR), + DECL(AL_VERSION), + DECL(AL_RENDERER), + DECL(AL_EXTENSIONS), + + DECL(AL_DOPPLER_FACTOR), + DECL(AL_DOPPLER_VELOCITY), + DECL(AL_DISTANCE_MODEL), + DECL(AL_SPEED_OF_SOUND), + DECL(AL_SOURCE_DISTANCE_MODEL), + DECL(AL_DEFERRED_UPDATES_SOFT), + + DECL(AL_INVERSE_DISTANCE), + DECL(AL_INVERSE_DISTANCE_CLAMPED), + DECL(AL_LINEAR_DISTANCE), + DECL(AL_LINEAR_DISTANCE_CLAMPED), + DECL(AL_EXPONENT_DISTANCE), + DECL(AL_EXPONENT_DISTANCE_CLAMPED), + + DECL(AL_FILTER_TYPE), + DECL(AL_FILTER_NULL), + DECL(AL_FILTER_LOWPASS), #if 0 - { "AL_FILTER_HIGHPASS", AL_FILTER_HIGHPASS }, - { "AL_FILTER_BANDPASS", AL_FILTER_BANDPASS }, + DECL(AL_FILTER_HIGHPASS), + DECL(AL_FILTER_BANDPASS), #endif - { "AL_LOWPASS_GAIN", AL_LOWPASS_GAIN }, - { "AL_LOWPASS_GAINHF", AL_LOWPASS_GAINHF }, + DECL(AL_LOWPASS_GAIN), + DECL(AL_LOWPASS_GAINHF), - { "AL_EFFECT_TYPE", AL_EFFECT_TYPE }, - { "AL_EFFECT_NULL", AL_EFFECT_NULL }, - { "AL_EFFECT_REVERB", AL_EFFECT_REVERB }, - { "AL_EFFECT_EAXREVERB", AL_EFFECT_EAXREVERB }, + DECL(AL_EFFECT_TYPE), + DECL(AL_EFFECT_NULL), + DECL(AL_EFFECT_REVERB), + DECL(AL_EFFECT_EAXREVERB), #if 0 - { "AL_EFFECT_CHORUS", AL_EFFECT_CHORUS }, - { "AL_EFFECT_DISTORTION", AL_EFFECT_DISTORTION }, + DECL(AL_EFFECT_CHORUS), + DECL(AL_EFFECT_DISTORTION), #endif - { "AL_EFFECT_ECHO", AL_EFFECT_ECHO }, + DECL(AL_EFFECT_ECHO), #if 0 - { "AL_EFFECT_FLANGER", AL_EFFECT_FLANGER }, - { "AL_EFFECT_FREQUENCY_SHIFTER", AL_EFFECT_FREQUENCY_SHIFTER }, - { "AL_EFFECT_VOCAL_MORPHER", AL_EFFECT_VOCAL_MORPHER }, - { "AL_EFFECT_PITCH_SHIFTER", AL_EFFECT_PITCH_SHIFTER }, + DECL(AL_EFFECT_FLANGER), + DECL(AL_EFFECT_FREQUENCY_SHIFTER), + DECL(AL_EFFECT_VOCAL_MORPHER), + DECL(AL_EFFECT_PITCH_SHIFTER), #endif - { "AL_EFFECT_RING_MODULATOR", AL_EFFECT_RING_MODULATOR }, + DECL(AL_EFFECT_RING_MODULATOR), #if 0 - { "AL_EFFECT_AUTOWAH", AL_EFFECT_AUTOWAH }, - { "AL_EFFECT_COMPRESSOR", AL_EFFECT_COMPRESSOR }, - { "AL_EFFECT_EQUALIZER", AL_EFFECT_EQUALIZER }, + DECL(AL_EFFECT_AUTOWAH), + DECL(AL_EFFECT_COMPRESSOR), + DECL(AL_EFFECT_EQUALIZER), #endif - { "AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT",AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT}, - { "AL_EFFECT_DEDICATED_DIALOGUE", AL_EFFECT_DEDICATED_DIALOGUE }, - - { "AL_EAXREVERB_DENSITY", AL_EAXREVERB_DENSITY }, - { "AL_EAXREVERB_DIFFUSION", AL_EAXREVERB_DIFFUSION }, - { "AL_EAXREVERB_GAIN", AL_EAXREVERB_GAIN }, - { "AL_EAXREVERB_GAINHF", AL_EAXREVERB_GAINHF }, - { "AL_EAXREVERB_GAINLF", AL_EAXREVERB_GAINLF }, - { "AL_EAXREVERB_DECAY_TIME", AL_EAXREVERB_DECAY_TIME }, - { "AL_EAXREVERB_DECAY_HFRATIO", AL_EAXREVERB_DECAY_HFRATIO }, - { "AL_EAXREVERB_DECAY_LFRATIO", AL_EAXREVERB_DECAY_LFRATIO }, - { "AL_EAXREVERB_REFLECTIONS_GAIN", AL_EAXREVERB_REFLECTIONS_GAIN }, - { "AL_EAXREVERB_REFLECTIONS_DELAY", AL_EAXREVERB_REFLECTIONS_DELAY }, - { "AL_EAXREVERB_REFLECTIONS_PAN", AL_EAXREVERB_REFLECTIONS_PAN }, - { "AL_EAXREVERB_LATE_REVERB_GAIN", AL_EAXREVERB_LATE_REVERB_GAIN }, - { "AL_EAXREVERB_LATE_REVERB_DELAY", AL_EAXREVERB_LATE_REVERB_DELAY }, - { "AL_EAXREVERB_LATE_REVERB_PAN", AL_EAXREVERB_LATE_REVERB_PAN }, - { "AL_EAXREVERB_ECHO_TIME", AL_EAXREVERB_ECHO_TIME }, - { "AL_EAXREVERB_ECHO_DEPTH", AL_EAXREVERB_ECHO_DEPTH }, - { "AL_EAXREVERB_MODULATION_TIME", AL_EAXREVERB_MODULATION_TIME }, - { "AL_EAXREVERB_MODULATION_DEPTH", AL_EAXREVERB_MODULATION_DEPTH }, - { "AL_EAXREVERB_AIR_ABSORPTION_GAINHF", AL_EAXREVERB_AIR_ABSORPTION_GAINHF }, - { "AL_EAXREVERB_HFREFERENCE", AL_EAXREVERB_HFREFERENCE }, - { "AL_EAXREVERB_LFREFERENCE", AL_EAXREVERB_LFREFERENCE }, - { "AL_EAXREVERB_ROOM_ROLLOFF_FACTOR", AL_EAXREVERB_ROOM_ROLLOFF_FACTOR }, - { "AL_EAXREVERB_DECAY_HFLIMIT", AL_EAXREVERB_DECAY_HFLIMIT }, - - { "AL_REVERB_DENSITY", AL_REVERB_DENSITY }, - { "AL_REVERB_DIFFUSION", AL_REVERB_DIFFUSION }, - { "AL_REVERB_GAIN", AL_REVERB_GAIN }, - { "AL_REVERB_GAINHF", AL_REVERB_GAINHF }, - { "AL_REVERB_DECAY_TIME", AL_REVERB_DECAY_TIME }, - { "AL_REVERB_DECAY_HFRATIO", AL_REVERB_DECAY_HFRATIO }, - { "AL_REVERB_REFLECTIONS_GAIN", AL_REVERB_REFLECTIONS_GAIN }, - { "AL_REVERB_REFLECTIONS_DELAY", AL_REVERB_REFLECTIONS_DELAY }, - { "AL_REVERB_LATE_REVERB_GAIN", AL_REVERB_LATE_REVERB_GAIN }, - { "AL_REVERB_LATE_REVERB_DELAY", AL_REVERB_LATE_REVERB_DELAY }, - { "AL_REVERB_AIR_ABSORPTION_GAINHF", AL_REVERB_AIR_ABSORPTION_GAINHF }, - { "AL_REVERB_ROOM_ROLLOFF_FACTOR", AL_REVERB_ROOM_ROLLOFF_FACTOR }, - { "AL_REVERB_DECAY_HFLIMIT", AL_REVERB_DECAY_HFLIMIT }, - - { "AL_ECHO_DELAY", AL_ECHO_DELAY }, - { "AL_ECHO_LRDELAY", AL_ECHO_LRDELAY }, - { "AL_ECHO_DAMPING", AL_ECHO_DAMPING }, - { "AL_ECHO_FEEDBACK", AL_ECHO_FEEDBACK }, - { "AL_ECHO_SPREAD", AL_ECHO_SPREAD }, - - { "AL_RING_MODULATOR_FREQUENCY", AL_RING_MODULATOR_FREQUENCY }, - { "AL_RING_MODULATOR_HIGHPASS_CUTOFF", AL_RING_MODULATOR_HIGHPASS_CUTOFF }, - { "AL_RING_MODULATOR_WAVEFORM", AL_RING_MODULATOR_WAVEFORM }, - - { "AL_DEDICATED_GAIN", AL_DEDICATED_GAIN }, - - { NULL, (ALCenum)0 } + DECL(AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT), + DECL(AL_EFFECT_DEDICATED_DIALOGUE), + + DECL(AL_EAXREVERB_DENSITY), + DECL(AL_EAXREVERB_DIFFUSION), + DECL(AL_EAXREVERB_GAIN), + DECL(AL_EAXREVERB_GAINHF), + DECL(AL_EAXREVERB_GAINLF), + DECL(AL_EAXREVERB_DECAY_TIME), + DECL(AL_EAXREVERB_DECAY_HFRATIO), + DECL(AL_EAXREVERB_DECAY_LFRATIO), + DECL(AL_EAXREVERB_REFLECTIONS_GAIN), + DECL(AL_EAXREVERB_REFLECTIONS_DELAY), + DECL(AL_EAXREVERB_REFLECTIONS_PAN), + DECL(AL_EAXREVERB_LATE_REVERB_GAIN), + DECL(AL_EAXREVERB_LATE_REVERB_DELAY), + DECL(AL_EAXREVERB_LATE_REVERB_PAN), + DECL(AL_EAXREVERB_ECHO_TIME), + DECL(AL_EAXREVERB_ECHO_DEPTH), + DECL(AL_EAXREVERB_MODULATION_TIME), + DECL(AL_EAXREVERB_MODULATION_DEPTH), + DECL(AL_EAXREVERB_AIR_ABSORPTION_GAINHF), + DECL(AL_EAXREVERB_HFREFERENCE), + DECL(AL_EAXREVERB_LFREFERENCE), + DECL(AL_EAXREVERB_ROOM_ROLLOFF_FACTOR), + DECL(AL_EAXREVERB_DECAY_HFLIMIT), + + DECL(AL_REVERB_DENSITY), + DECL(AL_REVERB_DIFFUSION), + DECL(AL_REVERB_GAIN), + DECL(AL_REVERB_GAINHF), + DECL(AL_REVERB_DECAY_TIME), + DECL(AL_REVERB_DECAY_HFRATIO), + DECL(AL_REVERB_REFLECTIONS_GAIN), + DECL(AL_REVERB_REFLECTIONS_DELAY), + DECL(AL_REVERB_LATE_REVERB_GAIN), + DECL(AL_REVERB_LATE_REVERB_DELAY), + DECL(AL_REVERB_AIR_ABSORPTION_GAINHF), + DECL(AL_REVERB_ROOM_ROLLOFF_FACTOR), + DECL(AL_REVERB_DECAY_HFLIMIT), + + DECL(AL_ECHO_DELAY), + DECL(AL_ECHO_LRDELAY), + DECL(AL_ECHO_DAMPING), + DECL(AL_ECHO_FEEDBACK), + DECL(AL_ECHO_SPREAD), + + DECL(AL_RING_MODULATOR_FREQUENCY), + DECL(AL_RING_MODULATOR_HIGHPASS_CUTOFF), + DECL(AL_RING_MODULATOR_WAVEFORM), + + DECL(AL_DEDICATED_GAIN), + + { NULL, (ALCenum)0 } }; +#undef DECL static const ALCchar alcNoError[] = "No Error"; static const ALCchar alcErrInvalidDevice[] = "Invalid Device"; -- cgit v1.2.3