Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Functions | Variables
sound.cpp File Reference
#include <boost/algorithm/clamp.hpp>
#include <string.h>
#include <algorithm>
#include <memory>
#include <string>
#include "inexor/engine/renderbackground.hpp"
#include "inexor/engine/rendergl.hpp"
#include "inexor/fpsgame/entities.hpp"
#include "inexor/io/Logging.hpp"
#include "inexor/io/filesystem/mediadirs.hpp"
#include "inexor/shared/command.hpp"
#include "inexor/shared/cube_hash.hpp"
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/cube_tools.hpp"
#include "inexor/shared/cube_types.hpp"
#include "inexor/shared/cube_vector.hpp"
#include "inexor/shared/ents.hpp"
#include "inexor/shared/geom.hpp"
#include "inexor/shared/tools.hpp"
#include "inexor/sound/mumble.hpp"
#include "inexor/sound/sound.hpp"
#include "inexor/ui/legacy/menus.hpp"
#include "inexor/ui/screen/ScreenManager.hpp"
#include "inexor/util/legacy_time.hpp"

Classes

struct  inexor::sound::soundsample
 
struct  inexor::sound::soundslot
 
struct  inexor::sound::soundconfig
 
struct  inexor::sound::soundchannel
 
struct  inexor::sound::soundtype
 

Namespaces

 inexor
 Show stacktrace on unix, do not include directly.
 
 inexor::sound
 

Macros

#define MAXVOL   100
 

Functions

soundchannel & inexor::sound::newchannel (int n, soundslot *slot, const vec *loc=nullptr, extentity *ent=nullptr, int flags=0, int radius=0)
 
void inexor::sound::freechannel (int n)
 
void inexor::sound::syncchannel (soundchannel &chan)
 
void inexor::sound::stopchannels ()
 
 inexor::sound::VARFP (soundvol, 0, 255, 255, if(!soundvol){stopchannels();})
 
 inexor::sound::VARF (soundchans, 1, 32, 128, initwarning("sound configuration", INIT_RESET, CHANGE_SOUND))
 
 inexor::sound::VARF (soundfreq, 0, 44100, 44100, initwarning("sound configuration", INIT_RESET, CHANGE_SOUND))
 
 inexor::sound::VARF (soundbufferlen, 128, 1024, 4096, initwarning("sound configuration", INIT_RESET, CHANGE_SOUND))
 
void inexor::sound::initsound ()
 
static void inexor::sound::cleanupsamples ()
 
void inexor::sound::registersound (char *name, int *vol)
 
 inexor::sound::COMMAND (registersound,"si")
 
void inexor::sound::mapsound (char *name, int *vol, int *maxuses)
 
 inexor::sound::COMMAND (mapsound,"sii")
 
void inexor::sound::altsound (char *name, int *vol)
 
 inexor::sound::COMMAND (altsound,"si")
 
void inexor::sound::altmapsound (char *name, int *vol)
 
 inexor::sound::COMMAND (altmapsound,"si")
 
void inexor::sound::soundreset ()
 
 inexor::sound::COMMAND (soundreset,"")
 
void inexor::sound::mapsoundreset ()
 
 inexor::sound::COMMAND (mapsoundreset,"")
 
void inexor::sound::resetchannels ()
 
void inexor::sound::clear_sound ()
 
void inexor::sound::stopmapsounds ()
 
void inexor::sound::clearmapsounds ()
 
void inexor::sound::stopmapsound (extentity *e)
 
void inexor::sound::checkmapsounds ()
 
 inexor::sound::VAR (stereo, 0, 1, 1)
 
 inexor::sound::VARP (maxsoundradius, 0, 340, 10000)
 
bool inexor::sound::updatechannel (soundchannel &chan)
 
void inexor::sound::reclaimchannels ()
 
void inexor::sound::syncchannels ()
 
void inexor::sound::updatesounds ()
 
 inexor::sound::VARP (maxsoundsatonce, 0, 7, 100)
 
 inexor::sound::VAR (dbgsound, 0, 0, 1)
 
void inexor::sound::preloadsound (int n)
 
void inexor::sound::preloadmapsound (int n)
 
void inexor::sound::preloadmapsounds ()
 
int inexor::sound::playsound (int n, const vec *loc, extentity *ent, int flags, int loops, int fade, int chanid, int radius, int expire)
 
void inexor::sound::stopsounds ()
 
bool inexor::sound::stopsound (int n, int chanid, int fade)
 
int inexor::sound::playsoundname (const char *s, const vec *loc, int vol, int flags, int loops, int fade, int chanid, int radius, int expire)
 
void inexor::sound::sound (int *n)
 
 inexor::sound::COMMAND (sound,"i")
 
void inexor::sound::resetsound ()
 
 inexor::sound::COMMAND (resetsound,"")
 

Variables

bool inexor::sound::nosound = true
 
vector< soundchannel > inexor::sound::channels
 
int inexor::sound::maxchannels = 0
 
static hashnameset< soundsample > inexor::sound::samples
 
static struct
inexor::sound::soundtype 
inexor::sound::gamesounds
 
static struct
inexor::sound::soundtype 
inexor::sound::mapsounds
 

Class Documentation

struct inexor::sound::soundslot
Class Members
soundsample * sample
int volume

Macro Definition Documentation

#define MAXVOL   100