Starshatter_Open
Open source Starshatter engine
|
#include <MusicTrack.h>
Public Types | |
enum | STATE { NONE, FADE_IN, PLAY, FADE_OUT, STOP } |
Public Member Functions | |
MusicTrack (const Text &name, int mode=0, int index=0) | |
virtual | ~MusicTrack () |
virtual void | ExecFrame () |
virtual void | Play () |
virtual void | Stop () |
virtual void | FadeIn () |
virtual void | FadeOut () |
const Text & | Name () const |
Sound * | GetSound () const |
int | GetState () const |
int | GetMode () const |
int | GetIndex () const |
int | IsReady () const |
int | IsPlaying () const |
int | IsDone () const |
int | IsLooped () const |
virtual long | GetVolume () const |
virtual void | SetVolume (long v) |
virtual double | GetTotalTime () const |
virtual double | GetTimeRemaining () const |
virtual double | GetTimeElapsed () const |
virtual double | GetFadeTime () const |
virtual void | SetFadeTime (double t) |
Protected Attributes | |
Text | name |
Sound * | sound |
int | state |
int | mode |
int | index |
double | fade |
double | fade_time |
Definition at line 29 of file MusicTrack.h.
enum MusicTrack::STATE |
Definition at line 32 of file MusicTrack.h.
MusicTrack::MusicTrack | ( | const Text & | name, |
int | mode = 0 , |
||
int | index = 0 |
||
) |
Definition at line 33 of file MusicTrack.cpp.
|
virtual |
Definition at line 69 of file MusicTrack.cpp.
|
virtual |
Definition at line 80 of file MusicTrack.cpp.
|
virtual |
Definition at line 163 of file MusicTrack.cpp.
|
virtual |
Definition at line 172 of file MusicTrack.cpp.
|
inlinevirtual |
Definition at line 64 of file MusicTrack.h.
|
inline |
Definition at line 50 of file MusicTrack.h.
|
inline |
Definition at line 49 of file MusicTrack.h.
|
inline |
Definition at line 47 of file MusicTrack.h.
|
inline |
Definition at line 48 of file MusicTrack.h.
|
virtual |
Definition at line 266 of file MusicTrack.cpp.
|
virtual |
Definition at line 257 of file MusicTrack.cpp.
|
virtual |
Definition at line 248 of file MusicTrack.cpp.
|
virtual |
Definition at line 221 of file MusicTrack.cpp.
int MusicTrack::IsDone | ( | ) | const |
Definition at line 201 of file MusicTrack.cpp.
int MusicTrack::IsLooped | ( | ) | const |
Definition at line 210 of file MusicTrack.cpp.
int MusicTrack::IsPlaying | ( | ) | const |
Definition at line 192 of file MusicTrack.cpp.
int MusicTrack::IsReady | ( | ) | const |
Definition at line 183 of file MusicTrack.cpp.
|
inline |
Definition at line 46 of file MusicTrack.h.
|
virtual |
Definition at line 149 of file MusicTrack.cpp.
|
inlinevirtual |
Definition at line 65 of file MusicTrack.h.
|
virtual |
Definition at line 230 of file MusicTrack.cpp.
|
virtual |
Definition at line 156 of file MusicTrack.cpp.
|
protected |
Definition at line 73 of file MusicTrack.h.
|
protected |
Definition at line 74 of file MusicTrack.h.
|
protected |
Definition at line 72 of file MusicTrack.h.
|
protected |
Definition at line 71 of file MusicTrack.h.
|
protected |
Definition at line 68 of file MusicTrack.h.
|
protected |
Definition at line 69 of file MusicTrack.h.
|
protected |
Definition at line 70 of file MusicTrack.h.