fix some of the things that baker didn't like. sorry it took so long.
try to appease msvc6, just because. update the downloads menu. now even betterer!... fix proquake server angle snapping precision issue. also accept _glow textures as an alternative to the more standard _luma. compat for dp_water shader terms. tcgen stuff is still fscked up. menu tooltip code can now properly deal with variable width etc stuff. add missing te_flamejet builtin. r_dynamic -1 can now cope with q3bsp for a small speedup. added -watch commandline arg, to make it easier to figure out where cvar changes are coming from. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5015 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8d2af6ff7b
commit
c08a0aa139
104 changed files with 3629 additions and 2828 deletions
|
@ -931,8 +931,7 @@ static qboolean OpenAL_InitLibrary(void)
|
|||
|
||||
static qboolean OpenAL_Init(soundcardinfo_t *sc, const char *devname)
|
||||
{
|
||||
oalinfo_t *oali = Z_Malloc(sizeof(oalinfo_t));
|
||||
sc->handle = oali;
|
||||
oalinfo_t *oali;
|
||||
|
||||
if (!OpenAL_InitLibrary())
|
||||
{
|
||||
|
@ -943,46 +942,43 @@ static qboolean OpenAL_Init(soundcardinfo_t *sc, const char *devname)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (oali->OpenAL_Context)
|
||||
{
|
||||
Con_Printf(SDRVNAME": only able to load one device at a time\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!devname || !*devname)
|
||||
devname = palcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
|
||||
Q_snprintfz(sc->name, sizeof(sc->name), "%s", devname);
|
||||
Con_Printf("Initiating "SDRVNAME": %s.\n", devname);
|
||||
|
||||
oali = Z_Malloc(sizeof(oalinfo_t));
|
||||
sc->handle = oali;
|
||||
|
||||
oali->OpenAL_Device = palcOpenDevice(devname);
|
||||
if (oali->OpenAL_Device == NULL)
|
||||
{
|
||||
PrintALError("Could not init a sound device\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
oali->OpenAL_Context = palcCreateContext(oali->OpenAL_Device, NULL);
|
||||
if (!oali->OpenAL_Context)
|
||||
else
|
||||
{
|
||||
PrintALError("Could not init a sound context\n");
|
||||
return false;
|
||||
oali->OpenAL_Context = palcCreateContext(oali->OpenAL_Device, NULL);
|
||||
if (!oali->OpenAL_Context)
|
||||
PrintALError("Could not init a sound context\n");
|
||||
else
|
||||
{
|
||||
palcMakeContextCurrent(oali->OpenAL_Context);
|
||||
// palcProcessContext(oali->OpenAL_Context);
|
||||
|
||||
//S_Info();
|
||||
|
||||
//fixme...
|
||||
memset(oali->source, 0, sizeof(oali->source));
|
||||
PrintALError("alGensources for normal sources");
|
||||
|
||||
palListenerfv(AL_POSITION, oali->ListenPos);
|
||||
palListenerfv(AL_VELOCITY, oali->ListenVel);
|
||||
palListenerfv(AL_ORIENTATION, oali->ListenOri);
|
||||
|
||||
return true;
|
||||
}
|
||||
palcCloseDevice(oali->OpenAL_Device);
|
||||
}
|
||||
|
||||
palcMakeContextCurrent(oali->OpenAL_Context);
|
||||
// palcProcessContext(oali->OpenAL_Context);
|
||||
|
||||
//S_Info();
|
||||
|
||||
//fixme...
|
||||
memset(oali->source, 0, sizeof(oali->source));
|
||||
PrintALError("alGensources for normal sources");
|
||||
|
||||
|
||||
palListenerfv(AL_POSITION, oali->ListenPos);
|
||||
palListenerfv(AL_VELOCITY, oali->ListenVel);
|
||||
palListenerfv(AL_ORIENTATION, oali->ListenOri);
|
||||
|
||||
return true;
|
||||
Z_Free(oali);
|
||||
return false;
|
||||
}
|
||||
|
||||
//called when some al-specific cvar has changed that is linked to openal state.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue