diff options
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r-- | engines/agi/agi.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index e83ef4ead9..b15a4c3bac 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -501,8 +501,7 @@ AgiBase::AgiBase(OSystem *syst, const AGIGameDescription *gameDesc) : Engine(sys AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBase(syst, gameDesc) { // Setup mixer - _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume")); - _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume")); + syncSoundSettings(); parseFeatures(); @@ -709,18 +708,6 @@ Common::Error AgiEngine::go() { return Common::kNoError; } -void AgiEngine::syncSoundSettings() { - // FIXME/TODO: Please explain why we are using "music_volume" for all - // three different entries here. - int soundVolumeMusic = ConfMan.getInt("music_volume"); - int soundVolumeSFX = ConfMan.getInt("music_volume"); - int soundVolumeSpeech = ConfMan.getInt("music_volume"); - - _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, soundVolumeMusic); - _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, soundVolumeSFX); - _mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, soundVolumeSpeech); -} - void AgiEngine::parseFeatures() { if (!ConfMan.hasKey("features")) return; |