SoundHandle * handle
handle if this soundtrack is active
void FadeDownAndStop()
Fades this Soundtrack down and stops it.
bool CheckType(const int _type)
Compares soundstracks type against a given type.
~psMusic()
Destructor Removes Handle callback if theres one.
int timeofday
time when this music starts playing
void SetUnManaged()
Sets Autoremove to true.
float minvol
volume when fading in
void FadeDown()
Fades this Soundtrack down.
psMusic()
Constructor Sets active to false and handle to NULL.
void DontLoop()
Disable looping.
This namespace contains a set of functions that are usefull for the processing of music and musical s...
size_t loopstart
frame to start at when looping
csString resource
sound resource
static void StopCallback(void *object)
Callback function for Stop.
int fadedelay
number of milliseconds fading should use
void FadeUp()
Fades this Soundtrack up.
void UpdateHandleCallback()
Updates Handles Callback.
A Volume and Sound control class.
void Stop()
Stops this Soundtrack immediatly.
bool CheckTimeOfDay(int time)
Check time of day.
bool active
is this soundtrack active?
void SetManaged()
Set Autoremove to false.
size_t loopend
frame when jumping back to loopstart (when looping)
void Loop()
Enable or resume looping.
int timeofdayrange
time till this music is playing
float maxvol
volume this track is playing at
bool Play(bool loopToggle, SoundControl *&ctrl)
Play this SoundTrack.
int type
type can be anything i use it for weather checks and similar thhings