diff options
author | Christopher Page | 2008-07-07 05:51:39 +0000 |
---|---|---|
committer | Christopher Page | 2008-07-07 05:51:39 +0000 |
commit | 0bffc3cb7b812e43ad58fe5e8d53eebea13063f9 (patch) | |
tree | 146d4e1ece71e60f9ac81d908c1d808d3b4e88c9 | |
parent | 8957971162a563d7bb4e0e74cff94cb7ffb69c48 (diff) | |
download | scummvm-rg350-0bffc3cb7b812e43ad58fe5e8d53eebea13063f9.tar.gz scummvm-rg350-0bffc3cb7b812e43ad58fe5e8d53eebea13063f9.tar.bz2 scummvm-rg350-0bffc3cb7b812e43ad58fe5e8d53eebea13063f9.zip |
Sound settings for AGI are now configurable through the GMM
svn-id: r32936
-rw-r--r-- | engines/agi/agi.cpp | 12 | ||||
-rw-r--r-- | engines/agi/agi.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 3619b08c9d..c67cfae4ab 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -622,6 +622,7 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas // Setup mixer _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume")); + _mixer->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, ConfMan.getInt("music_volume")); const GameSettings *g; @@ -812,4 +813,15 @@ int AgiEngine::go() { return _rtl; } +void AgiEngine::syncSoundSettings() { + int soundVolumeMusic = ConfMan.getInt("music_volume"); + int soundVolumeSFX = ConfMan.getInt("music_volume"); + int soundVolumeSpeech = ConfMan.getInt("music_volume"); + + _mixer->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, soundVolumeMusic); + _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, soundVolumeMusic); + _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, soundVolumeSFX); + _mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, soundVolumeSpeech); +} + } // End of namespace Agi diff --git a/engines/agi/agi.h b/engines/agi/agi.h index 9f12ccd57c..ec290b812d 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -753,6 +753,8 @@ public: return _gameId; } + virtual void syncSoundSettings(); + private: int _keyQueue[KEY_QUEUE_SIZE]; |