diff options
author | Paul Gilbert | 2018-05-04 21:46:39 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-05-04 21:46:39 -0400 |
commit | 9db2f3cd8412faaa4771a17a8479f107e54e148f (patch) | |
tree | c1f8ed76556fe952139fa2be8017a732b4b227a6 /engines/xeen/sound.h | |
parent | 8fdf592fe12760150bffd309ed0839d8107c75cb (diff) | |
download | scummvm-rg350-9db2f3cd8412faaa4771a17a8479f107e54e148f.tar.gz scummvm-rg350-9db2f3cd8412faaa4771a17a8479f107e54e148f.tar.bz2 scummvm-rg350-9db2f3cd8412faaa4771a17a8479f107e54e148f.zip |
XEEN: In progress splitting of music and sfx volumes in sound driver
Diffstat (limited to 'engines/xeen/sound.h')
-rw-r--r-- | engines/xeen/sound.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/xeen/sound.h b/engines/xeen/sound.h index 86303f682f..613299c6dc 100644 --- a/engines/xeen/sound.h +++ b/engines/xeen/sound.h @@ -40,6 +40,7 @@ private: Audio::Mixer *_mixer; Audio::SoundHandle _soundHandle; byte _musicPercent; + int _musicVolume, _sfxVolume; private: /** * Loads effects data that was embedded in the music driver @@ -50,6 +51,11 @@ private: * Updates any playing music */ void update(); + + /** + * Updates the music and sound effects playing volume + */ + void updateVolume(); public: bool _fxOn; bool _musicOn; @@ -73,7 +79,7 @@ public: /** * Executes special music command */ - int songCommand(uint commandId, byte volume = 0); + int songCommand(uint commandId, byte musicVolume = 0, byte sfxVolume = 0); /** * Stops any currently playing music |