Changed 's_alDumpCustInfoParms' and 's_alDumpSoundShader' to 'writecustinfoparms' and 'writesoundshader'.

This commit is contained in:
Andrei Drexler 2011-04-19 21:38:17 +00:00
parent 411ad75550
commit 956f17c366

View file

@ -2666,8 +2666,8 @@ static void S_AL_ShutDownEffects(void)
Com_Memset(&s_alEffects, 0, sizeof(s_alEffects)); Com_Memset(&s_alEffects, 0, sizeof(s_alEffects));
Cmd_RemoveCommand("s_alTestReverb"); Cmd_RemoveCommand("s_alTestReverb");
Cmd_RemoveCommand("s_alDumpSoundShader"); Cmd_RemoveCommand("writesoundshader");
Cmd_RemoveCommand("s_alDumpCustinfoparms"); Cmd_RemoveCommand("writecustinfoparms");
} }
/* /*
@ -2726,52 +2726,47 @@ static qboolean S_AL_InitEFX( ALCdevice* alDevice )
return qfalse; return qfalse;
} }
# define INIT_FUNCTION(name) q##name = qalGetProcAddress(#name); if (!q##name) return qfalse
// Get function pointers // Get function pointers
qalGenEffects = (LPALGENEFFECTS)qalGetProcAddress("alGenEffects");
qalDeleteEffects = (LPALDELETEEFFECTS )qalGetProcAddress("alDeleteEffects"); INIT_FUNCTION(alGenEffects);
qalIsEffect = (LPALISEFFECT )qalGetProcAddress("alIsEffect"); INIT_FUNCTION(alDeleteEffects);
qalEffecti = (LPALEFFECTI)qalGetProcAddress("alEffecti"); INIT_FUNCTION(alIsEffect);
qalEffectiv = (LPALEFFECTIV)qalGetProcAddress("alEffectiv"); INIT_FUNCTION(alEffecti);
qalEffectf = (LPALEFFECTF)qalGetProcAddress("alEffectf"); INIT_FUNCTION(alEffectiv);
qalEffectfv = (LPALEFFECTFV)qalGetProcAddress("alEffectfv"); INIT_FUNCTION(alEffectf);
qalGetEffecti = (LPALGETEFFECTI)qalGetProcAddress("alGetEffecti"); INIT_FUNCTION(alEffectfv);
qalGetEffectiv = (LPALGETEFFECTIV)qalGetProcAddress("alGetEffectiv"); INIT_FUNCTION(alGetEffecti);
qalGetEffectf = (LPALGETEFFECTF)qalGetProcAddress("alGetEffectf"); INIT_FUNCTION(alGetEffectiv);
qalGetEffectfv = (LPALGETEFFECTFV)qalGetProcAddress("alGetEffectfv"); INIT_FUNCTION(alGetEffectf);
qalGenFilters = (LPALGENFILTERS)qalGetProcAddress("alGenFilters"); INIT_FUNCTION(alGetEffectfv);
qalDeleteFilters = (LPALDELETEFILTERS)qalGetProcAddress("alDeleteFilters"); INIT_FUNCTION(alGenFilters);
qalIsFilter = (LPALISFILTER)qalGetProcAddress("alIsFilter"); INIT_FUNCTION(alDeleteFilters);
qalFilteri = (LPALFILTERI)qalGetProcAddress("alFilteri"); INIT_FUNCTION(alIsFilter);
qalFilteriv = (LPALFILTERIV)qalGetProcAddress("alFilteriv"); INIT_FUNCTION(alFilteri);
qalFilterf = (LPALFILTERF)qalGetProcAddress("alFilterf"); INIT_FUNCTION(alFilteriv);
qalFilterfv = (LPALFILTERFV)qalGetProcAddress("alFilterfv"); INIT_FUNCTION(alFilterf);
qalGetFilteri = (LPALGETFILTERI )qalGetProcAddress("alGetFilteri"); INIT_FUNCTION(alFilterfv);
qalGetFilteriv= (LPALGETFILTERIV )qalGetProcAddress("alGetFilteriv"); INIT_FUNCTION(alGetFilteri);
qalGetFilterf = (LPALGETFILTERF )qalGetProcAddress("alGetFilterf"); INIT_FUNCTION(alGetFilteriv);
qalGetFilterfv= (LPALGETFILTERFV )qalGetProcAddress("alGetFilterfv"); INIT_FUNCTION(alGetFilterf);
qalGenAuxiliaryEffectSlots = (LPALGENAUXILIARYEFFECTSLOTS)qalGetProcAddress("alGenAuxiliaryEffectSlots"); INIT_FUNCTION(alGetFilterfv);
qalDeleteAuxiliaryEffectSlots = (LPALDELETEAUXILIARYEFFECTSLOTS)qalGetProcAddress("alDeleteAuxiliaryEffectSlots"); INIT_FUNCTION(alGenAuxiliaryEffectSlots);
qalIsAuxiliaryEffectSlot = (LPALISAUXILIARYEFFECTSLOT)qalGetProcAddress("alIsAuxiliaryEffectSlot"); INIT_FUNCTION(alDeleteAuxiliaryEffectSlots);
qalAuxiliaryEffectSloti = (LPALAUXILIARYEFFECTSLOTI)qalGetProcAddress("alAuxiliaryEffectSloti"); INIT_FUNCTION(alIsAuxiliaryEffectSlot);
qalAuxiliaryEffectSlotiv = (LPALAUXILIARYEFFECTSLOTIV)qalGetProcAddress("alAuxiliaryEffectSlotiv"); INIT_FUNCTION(alAuxiliaryEffectSloti);
qalAuxiliaryEffectSlotf = (LPALAUXILIARYEFFECTSLOTF)qalGetProcAddress("alAuxiliaryEffectSlotf"); INIT_FUNCTION(alAuxiliaryEffectSlotiv);
qalAuxiliaryEffectSlotfv = (LPALAUXILIARYEFFECTSLOTFV)qalGetProcAddress("alAuxiliaryEffectSlotfv"); INIT_FUNCTION(alAuxiliaryEffectSlotf);
qalGetAuxiliaryEffectSloti = (LPALGETAUXILIARYEFFECTSLOTI)qalGetProcAddress("alGetAuxiliaryEffectSloti"); INIT_FUNCTION(alAuxiliaryEffectSlotfv);
qalGetAuxiliaryEffectSlotiv = (LPALGETAUXILIARYEFFECTSLOTIV)qalGetProcAddress("alGetAuxiliaryEffectSlotiv"); INIT_FUNCTION(alGetAuxiliaryEffectSloti);
qalGetAuxiliaryEffectSlotf = (LPALGETAUXILIARYEFFECTSLOTF)qalGetProcAddress("alGetAuxiliaryEffectSlotf"); INIT_FUNCTION(alGetAuxiliaryEffectSlotiv);
qalGetAuxiliaryEffectSlotfv = (LPALGETAUXILIARYEFFECTSLOTFV)qalGetProcAddress("alGetAuxiliaryEffectSlotfv"); INIT_FUNCTION(alGetAuxiliaryEffectSlotf);
INIT_FUNCTION(alGetAuxiliaryEffectSlotfv);
if (qalGenEffects && qalDeleteEffects && qalIsEffect && qalEffecti && qalEffectiv && qalEffectf && # undef INIT_FUNCTION
qalEffectfv && qalGetEffecti && qalGetEffectiv && qalGetEffectf && qalGetEffectfv && qalGenFilters &&
qalDeleteFilters && qalIsFilter && qalFilteri && qalFilteriv && qalFilterf && qalFilterfv &&
qalGetFilteri && qalGetFilteriv && qalGetFilterf && qalGetFilterfv && qalGenAuxiliaryEffectSlots &&
qalDeleteAuxiliaryEffectSlots && qalIsAuxiliaryEffectSlot && qalAuxiliaryEffectSloti &&
qalAuxiliaryEffectSlotiv && qalAuxiliaryEffectSlotf && qalAuxiliaryEffectSlotfv &&
qalGetAuxiliaryEffectSloti && qalGetAuxiliaryEffectSlotiv && qalGetAuxiliaryEffectSlotf &&
qalGetAuxiliaryEffectSlotfv)
return qtrue;
return qfalse; return qtrue;
} }
/* /*
@ -2869,7 +2864,7 @@ static void S_Cmd_AL_DumpCustinfoparms( void )
{ {
const char* filename; const char* filename;
fileHandle_t file; fileHandle_t file;
int i, end; int i;
if (Cmd_Argc() < 2) if (Cmd_Argc() < 2)
filename = "scripts/custinfoparms.txt"; filename = "scripts/custinfoparms.txt";
@ -3056,8 +3051,8 @@ static qboolean S_AL_InitEffects(ALCdevice* alDevice)
qalAuxiliaryEffectSloti(s_alEffects.env.alEffectSlot, AL_EFFECTSLOT_EFFECT, s_alEffects.env.alEffect); qalAuxiliaryEffectSloti(s_alEffects.env.alEffectSlot, AL_EFFECTSLOT_EFFECT, s_alEffects.env.alEffect);
Cmd_AddCommand("s_alTestReverb", S_Cmd_AL_TestReverb); Cmd_AddCommand("s_alTestReverb", S_Cmd_AL_TestReverb);
Cmd_AddCommand("s_alDumpSoundShader", S_Cmd_AL_DumpSoundShader); Cmd_AddCommand("writesoundshader", S_Cmd_AL_DumpSoundShader);
Cmd_AddCommand("s_alDumpCustinfoparms", S_Cmd_AL_DumpCustinfoparms); Cmd_AddCommand("writecustinfoparms", S_Cmd_AL_DumpCustinfoparms);
} }
return s_alEffects.initialized; return s_alEffects.initialized;