diff options
author | Paul Gilbert | 2016-09-16 19:13:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-16 19:13:01 -0400 |
commit | 1879aeae578e75518f0c798a77b2983eb1b29c26 (patch) | |
tree | 0c18c56645757f5d85d3e4ed70ba6831afe16ce3 /engines/xeen/music.h | |
parent | 9691da2b05a2dd701beeefc260c7a2bedda046fd (diff) | |
download | scummvm-rg350-1879aeae578e75518f0c798a77b2983eb1b29c26.tar.gz scummvm-rg350-1879aeae578e75518f0c798a77b2983eb1b29c26.tar.bz2 scummvm-rg350-1879aeae578e75518f0c798a77b2983eb1b29c26.zip |
XEEN: Further fixes and cleanup for music player
Diffstat (limited to 'engines/xeen/music.h')
-rw-r--r-- | engines/xeen/music.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/xeen/music.h b/engines/xeen/music.h index f09f96ff79..5b23cc1965 100644 --- a/engines/xeen/music.h +++ b/engines/xeen/music.h @@ -77,7 +77,6 @@ private: Common::Stack<Subroutine> _musSubroutines, _fxSubroutines; int _musCountdownTimer; int _fxCountdownTimer; - bool _lowMusicIgnored; const byte *_fxDataPtr, *_musDataPtr; const byte *_fxStartPtr; const byte *_musStartPtr; @@ -91,7 +90,8 @@ private: protected: Common::Array<Channel> _channels; bool _fieldF; - bool _field1E; + bool _musicPlaying; + bool _fxPlaying; protected: /** * Executes a series of commands until instructed to stop @@ -334,6 +334,11 @@ public: void restartMusic() { songCommand(RESTART_MUSIC); } /** + * Sets the music volume + */ + void setMusicVolume(byte volume) { songCommand(SET_VOLUME, volume); } + + /** * Plays a song */ void playSong(Common::SeekableReadStream &stream); |