diff options
Diffstat (limited to 'engines/xeen/music.h')
-rw-r--r-- | engines/xeen/music.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/engines/xeen/music.h b/engines/xeen/music.h index 1182be4377..d675a37d08 100644 --- a/engines/xeen/music.h +++ b/engines/xeen/music.h @@ -91,7 +91,7 @@ private: bool command(const byte *&srcP); protected: Common::Array<Channel> _channels; - int _exclude7; + bool _exclude7; bool _musicPlaying; bool _fxPlaying; protected: @@ -136,6 +136,11 @@ protected: * Post-processing done when a pause countdown starts or is in progress */ virtual void pausePostProcess() = 0; + + /** + * Does a reset of any sound effect + */ + virtual void resetFX() = 0; public: /** * Constructor @@ -153,9 +158,9 @@ public: virtual void playFX(uint effectId, const byte *data); /** - * Does a reset of any sound effect + * Stop any playing FX */ - virtual void stopFX() = 0; + void stopFX(); /** * Plays a song @@ -262,6 +267,11 @@ protected: * Post-processing done when a pause countdown starts or is in progress */ virtual void pausePostProcess(); + + /** + * Does a reset of any sound effect + */ + virtual void resetFX(); public: /** * Constructor @@ -279,11 +289,6 @@ public: virtual void playFX(uint effectId, const byte *data); /** - * Does a reset of any sound effect - */ - virtual void stopFX(); - - /** * Plays a song */ virtual void playSong(const byte *data); @@ -322,6 +327,11 @@ public: void playFX(uint effectId); /** + * Stops any currently playing FX + */ + void stopFX(); + + /** * Executes special music command */ int songCommand(uint commandId, byte volume = 0); |