|
Defines |
| #define | DEBUGCOND (audiodebug==1) |
Functions |
| | VARF (audio, 0, 1, 1, initwarning("sound configuration", INIT_RESET, CHANGE_SOUND)) |
| | VARP (audiodebug, 0, 0, 1) |
| | VARFP (musicvol, 0, 128, 255, audiomgr.setmusicvol(musicvol)) |
| | VARP (footsteps, 0, 1, 1) |
| | VARP (localfootsteps, 0, 1, 1) |
| | VARP (mapsoundrefresh, 0, 10, 1000) |
| void | voicecom (char *sound, char *text) |
| | COMMAND (voicecom, ARG_2STR) |
| void | soundtest () |
| | COMMAND (soundtest, ARG_NONE) |
| | VARP (maxsoundsatonce, 0, 10, 100) |
| | COMMANDF (sound, ARG_1INT,(int n){audiomgr.playsound(n);}) |
| | COMMANDF (applymapsoundchanges, ARG_NONE,(){audiomgr.applymapsoundchanges();}) |
| | COMMANDF (unmuteallsounds, ARG_NONE,(){audiomgr.unmuteallsounds();}) |
| | COMMANDF (mutesound, ARG_2INT,(int n, int off){audiomgr.mutesound(n, off);}) |
| | ICOMMANDF (soundmuted, ARG_1EXP,(int n){return audiomgr.soundmuted(n);}) |
| | COMMANDF (mapsoundreset, ARG_NONE,(){audiomgr.mapsoundreset();}) |
| | VARF (soundchannels, 4, 32, 1024, audiomgr.setchannels(soundchannels);) |
| | VARFP (soundvol, 0, 128, 255,{if(!audiomgr.nosound) alListenerf(AL_GAIN, soundvol/255.0f);}) |
| | COMMANDF (registersound, ARG_4STR,(char *name, char *vol, char *loop, char *audibleradius){audiomgr.addsound(name, atoi(vol),-1, atoi(loop)!=0, gamesounds, true, atoi(audibleradius));}) |
| | COMMANDF (mapsound, ARG_2STR,(char *name, char *maxuses){audiomgr.addsound(name, 255, atoi(maxuses), true, mapsounds, false, 0);}) |
| | COMMANDF (registermusic, ARG_1STR,(char *name){audiomgr.registermusic(name);}) |
| | COMMANDF (music, ARG_3STR,(char *name, char *millis, char *cmd){audiomgr.music(name, millis, cmd);}) |
Variables |
| char * | musicdonecmd = NULL |
| vector< soundconfig > | gamesounds |
| vector< soundconfig > | mapsounds |
| audiomanager | audiomgr |