diff options
author | Paul Gilbert | 2011-04-27 21:23:47 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-04-27 21:23:47 +1000 |
commit | 34fe545dc7f619a40cffa207b8660ecb0c027c1f (patch) | |
tree | 4c39813a3a8f1be435e893955e873c15b82e7e54 /engines/tsage/sound.h | |
parent | bc0e373da88155e6fe694ff727ca430a40081c88 (diff) | |
download | scummvm-rg350-34fe545dc7f619a40cffa207b8660ecb0c027c1f.tar.gz scummvm-rg350-34fe545dc7f619a40cffa207b8660ecb0c027c1f.tar.bz2 scummvm-rg350-34fe545dc7f619a40cffa207b8660ecb0c027c1f.zip |
TSAGE: Created stub classes for ASound and Sound, and reworked engine to use proper named methods
Diffstat (limited to 'engines/tsage/sound.h')
-rw-r--r-- | engines/tsage/sound.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/engines/tsage/sound.h b/engines/tsage/sound.h index a495344038..a1843545a9 100644 --- a/engines/tsage/sound.h +++ b/engines/tsage/sound.h @@ -28,6 +28,7 @@ #include "common/scummsys.h" #include "tsage/saveload.h" +#include "tsage/core.h" namespace tSage { @@ -44,6 +45,48 @@ public: void loadNotifierProc(bool postFlag); }; +class Sound: public EventHandler { +public: + +}; + +class ASound: public Sound { +public: + Sound _sound; + Action *_action; + int _field280; + + ASound(); + virtual void synchronise(Serialiser &s); + virtual void dispatch(); + + void play(int soundNum, Action *action = NULL, int volume = 127); + void stop(); + void prime(int v, Action *action = NULL); + void unPrime(); + void go(); + void hault(void); + int getSoundNum() const; + bool isPlaying() const; + bool isPaused() const; + bool isMuted() const; + void pause(); + void mute(); + void fadeIn(); + void fadeOut(EventHandler *evtHandler); + void fade(int v1, int v2, int v3, int v4, EventHandler *evtHandler); + void setTimeIndex(uint32 timeIndex); + uint32 getTimeIndex() const; + void setPri(int v); + void setLoop(bool flag); + int getPri() const; + bool getLoop(); + void setVolume(int volume); + int getVol() const; + void holdAt(int v); + void release(); +}; + } // End of namespace tSage #endif |