float minvol
vol at maxrange
csString resource
name of the resource
csVector3 position
position of the emitter
float maxrange
range when it should have minvol
static void StopCallback(void *object)
Callback function for Stop.
void Stop()
Stops this emitter.
bool CheckTimeOfDay(int time)
Check time of day.
bool dopplerEffect
true if the doppler effect must be applied for this emitter
A Volume and Sound control class.
csVector3 direction
direction were emitting to
bool active
is this emitter active?
bool loop
true if the sound if the sound has to loop
float probability
probability that this emitter play the sound
int fadedelay
how long fading should take in milliseconds
int timeofdayrange
time when this emitter stops
This object represents a planeshift soundEmitter.
~psEmitter()
Destructor Removes our Callback from the Handle if its still playing.
int timeofday
time when this emitter starts playing
float minrange
range when it should reach maxvol
float factory_prob
probability that this emitter attaches to the factory
float maxvol
vol at minrange
bool CheckRange(csVector3 listenerPos)
Check range to the given position.
csString factory
name of the factory this emitter should attach to
bool Play(SoundControl *&ctrl)
Play this emitter.