audiomanager Class Reference
#include <sound.h>
List of all members.
|
Public Member Functions |
| | audiomanager () |
| void | initsound () |
| void | soundcleanup () |
| void | preloadmapsound (entity &e) |
| void | preloadmapsounds () |
| void | applymapsoundchanges () |
| void | setchannels (int num) |
| int | addsound (char *name, int vol, int maxuses, bool loop, vector< soundconfig > &sounds, bool load, int audibleradius) |
| void | registermusic (char *name) |
| void | detachsounds (struct playerent *owner) |
| void | clearworldsounds (bool fullclean=true) |
| void | mapsoundreset () |
| void | stopsound () |
| void | music (char *name, char *millis, char *cmd) |
| void | musicsuggest (int id, int millis, bool rndofs) |
| void | musicfadeout (int id) |
| void | setmusicvol (int musicvol) |
| location * | _playsound (int n, const worldobjreference &r, int priority, float offset=0.0f, bool loop=false) |
| void | playsound (int n, int priority=SP_NORMAL) |
| void | playsound (int n, struct physent *p, int priority=SP_NORMAL) |
| void | playsound (int n, struct entity *e, int priority=SP_NORMAL) |
| void | playsound (int n, const vec *v, int priority=SP_NORMAL) |
| void | playsoundname (char *s, const vec *loc, int vol) |
| void | playsoundc (int n, physent *p=NULL) |
| void | sound (int n) |
| int | findsound (char *name, int vol, vector< soundconfig > &sounds) |
| void | mutesound (int n, int off) |
| void | unmuteallsounds () |
| int | soundmuted (int n) |
| void | updateplayerfootsteps (struct playerent *p) |
| location * | updateloopsound (int sound, bool active, float vol=1.0f) |
| void | updateaudio () |
| void | writesoundconfig (FILE *f) |
Private Attributes |
| bool | nosound |
| float | currentpitch |
| cvector | musics |
| ALCdevice * | device |
| ALCcontext * | context |
| bufferhashtable | bufferpool |
| locvector | locations |
| oggstream * | gamemusic |
Constructor & Destructor Documentation
| audiomanager::audiomanager |
( |
|
) |
|
Member Function Documentation
| location * audiomanager::_playsound |
( |
int |
n, |
|
|
const worldobjreference & |
r, |
|
|
int |
priority, |
|
|
float |
offset = 0.0f, |
|
|
bool |
loop = false | |
|
) |
| | |
| int audiomanager::addsound |
( |
char * |
name, |
|
|
int |
vol, |
|
|
int |
maxuses, |
|
|
bool |
loop, |
|
|
vector< soundconfig > & |
sounds, |
|
|
bool |
load, |
|
|
int |
audibleradius | |
|
) |
| | |
| void audiomanager::applymapsoundchanges |
( |
|
) |
|
| void audiomanager::clearworldsounds |
( |
bool |
fullclean = true |
) |
|
| void audiomanager::detachsounds |
( |
struct playerent * |
owner |
) |
|
| void audiomanager::initsound |
( |
|
) |
|
| void audiomanager::mapsoundreset |
( |
|
) |
|
| void audiomanager::music |
( |
char * |
name, |
|
|
char * |
millis, |
|
|
char * |
cmd | |
|
) |
| | |
| void audiomanager::musicfadeout |
( |
int |
id |
) |
|
| void audiomanager::musicsuggest |
( |
int |
id, |
|
|
int |
millis, |
|
|
bool |
rndofs | |
|
) |
| | |
| void audiomanager::mutesound |
( |
int |
n, |
|
|
int |
off | |
|
) |
| | |
| void audiomanager::playsound |
( |
int |
n, |
|
|
const vec * |
v, |
|
|
int |
priority = SP_NORMAL | |
|
) |
| | |
| void audiomanager::playsound |
( |
int |
n, |
|
|
struct entity * |
e, |
|
|
int |
priority = SP_NORMAL | |
|
) |
| | |
| void audiomanager::playsound |
( |
int |
n, |
|
|
struct physent * |
p, |
|
|
int |
priority = SP_NORMAL | |
|
) |
| | |
| void audiomanager::playsound |
( |
int |
n, |
|
|
int |
priority = SP_NORMAL | |
|
) |
| | |
| void audiomanager::playsoundc |
( |
int |
n, |
|
|
physent * |
p = NULL | |
|
) |
| | |
| void audiomanager::playsoundname |
( |
char * |
s, |
|
|
const vec * |
loc, |
|
|
int |
vol | |
|
) |
| | |
| void audiomanager::preloadmapsound |
( |
entity & |
e |
) |
|
| void audiomanager::preloadmapsounds |
( |
|
) |
|
| void audiomanager::registermusic |
( |
char * |
name |
) |
|
| void audiomanager::setchannels |
( |
int |
num |
) |
|
| void audiomanager::setmusicvol |
( |
int |
musicvol |
) |
|
| void audiomanager::sound |
( |
int |
n |
) |
|
| void audiomanager::soundcleanup |
( |
|
) |
|
| int audiomanager::soundmuted |
( |
int |
n |
) |
|
| void audiomanager::stopsound |
( |
|
) |
|
| void audiomanager::unmuteallsounds |
( |
|
) |
|
| void audiomanager::updateaudio |
( |
|
) |
|
| location * audiomanager::updateloopsound |
( |
int |
sound, |
|
|
bool |
active, |
|
|
float |
vol = 1.0f | |
|
) |
| | |
| void audiomanager::updateplayerfootsteps |
( |
struct playerent * |
p |
) |
|
| void audiomanager::writesoundconfig |
( |
FILE * |
f |
) |
|
Member Data Documentation
The documentation for this class was generated from the following files:
- R:/projects/actioncube/_svn/trunk/ac/source/src/sound.h
- R:/projects/actioncube/_svn/trunk/ac/source/src/audiomanager.cpp