aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/sound.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-05-04 21:46:39 -0400
committerPaul Gilbert2018-05-04 21:46:39 -0400
commit9db2f3cd8412faaa4771a17a8479f107e54e148f (patch)
treec1f8ed76556fe952139fa2be8017a732b4b227a6 /engines/xeen/sound.h
parent8fdf592fe12760150bffd309ed0839d8107c75cb (diff)
downloadscummvm-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.h8
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