summaryrefslogtreecommitdiffhomepage
path: root/Stars45/MusicTrack.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/MusicTrack.h')
-rw-r--r--Stars45/MusicTrack.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/Stars45/MusicTrack.h b/Stars45/MusicTrack.h
index 366e810..097f174 100644
--- a/Stars45/MusicTrack.h
+++ b/Stars45/MusicTrack.h
@@ -1,15 +1,15 @@
/* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: MusicTrack.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: MusicTrack.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- MusicTrack class
+ OVERVIEW
+ ========
+ MusicTrack class
*/
@@ -29,49 +29,49 @@ class Sound;
class MusicTrack
{
public:
- enum STATE { NONE, FADE_IN, PLAY, FADE_OUT, STOP };
+ enum STATE { NONE, FADE_IN, PLAY, FADE_OUT, STOP };
- MusicTrack(const Text& name, int mode=0, int index=0);
- virtual ~MusicTrack();
+ MusicTrack(const Text& name, int mode=0, int index=0);
+ virtual ~MusicTrack();
- // Operations:
- virtual void ExecFrame();
+ // Operations:
+ virtual void ExecFrame();
- virtual void Play();
- virtual void Stop();
- virtual void FadeIn();
- virtual void FadeOut();
+ virtual void Play();
+ virtual void Stop();
+ virtual void FadeIn();
+ virtual void FadeOut();
- // accessors / mutators
- const Text& Name() const { return name; }
- Sound* GetSound() const { return sound; }
- int GetState() const { return state; }
- int GetMode() const { return mode; }
- int GetIndex() const { return index; }
+ // accessors / mutators
+ const Text& Name() const { return name; }
+ Sound* GetSound() const { return sound; }
+ int GetState() const { return state; }
+ int GetMode() const { return mode; }
+ int GetIndex() const { return index; }
- int IsReady() const;
- int IsPlaying() const;
- int IsDone() const;
- int IsLooped() const;
+ int IsReady() const;
+ int IsPlaying() const;
+ int IsDone() const;
+ int IsLooped() const;
- virtual long GetVolume() const;
- virtual void SetVolume(long v);
+ virtual long GetVolume() const;
+ virtual void SetVolume(long v);
- virtual double GetTotalTime() const;
- virtual double GetTimeRemaining() const;
- virtual double GetTimeElapsed() const;
+ virtual double GetTotalTime() const;
+ virtual double GetTimeRemaining() const;
+ virtual double GetTimeElapsed() const;
- virtual double GetFadeTime() const { return fade_time; }
- virtual void SetFadeTime(double t) { fade_time = t; }
+ virtual double GetFadeTime() const { return fade_time; }
+ virtual void SetFadeTime(double t) { fade_time = t; }
protected:
- Text name;
- Sound* sound;
- int state;
- int mode;
- int index;
- double fade;
- double fade_time;
+ Text name;
+ Sound* sound;
+ int state;
+ int mode;
+ int index;
+ double fade;
+ double fade_time;
};
#endif MusicTrack_h \ No newline at end of file