diff options
author | Eric Fry | 2018-06-17 00:07:36 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 102dd462734f0baa67ae4f8439094f6aa50b42fa (patch) | |
tree | 86b153edc0fec565d0c3a198309d7254c494df7b /engines/illusions/sound.h | |
parent | 09281b85f507a8859de3b03ac512e871d849611e (diff) | |
download | scummvm-rg350-102dd462734f0baa67ae4f8439094f6aa50b42fa.tar.gz scummvm-rg350-102dd462734f0baa67ae4f8439094f6aa50b42fa.tar.bz2 scummvm-rg350-102dd462734f0baa67ae4f8439094f6aa50b42fa.zip |
ILLUSIONS: Wire up audio sliders on option menu.
Set volumes based on scummvm config
Diffstat (limited to 'engines/illusions/sound.h')
-rw-r--r-- | engines/illusions/sound.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/illusions/sound.h b/engines/illusions/sound.h index d2da8ed48e..f0786b2e4d 100644 --- a/engines/illusions/sound.h +++ b/engines/illusions/sound.h @@ -117,6 +117,14 @@ public: void stopMidiMusic(); void fadeMidiMusic(int16 finalVolume, int16 duration); + uint8 getMusicVolume(); + uint8 getSfxVolume(); + uint8 getSpeechVolume(); + + void setMusicVolume(uint8 volume); + void setSfxVolume(uint8 volume); + void setSpeechVolume(uint8 volume); + bool cueVoice(const char *voiceName); void stopCueingVoice(); void startVoice(int16 volume, int16 pan); @@ -140,6 +148,7 @@ protected: VoicePlayer *_voicePlayer; SoundList _sounds; Sound *getSound(uint32 soundEffectId); + uint8 calcAdjustedVolume(const Common::String &volumeConfigKey, uint8 volume); }; } // End of namespace Illusions |