aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r--sword2/sword2.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index 303afb357f..e9989db403 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -252,11 +252,9 @@ int Sword2Engine::init(GameDetector &detector) {
if (!_mixer->isReady())
warning("Sound initialization failed");
- // We have our own volume settings panel, so don't let ScummVM's mixer
- // soften the sound in any way.
-
- _mixer->setVolumeForSoundType(SoundMixer::kSFXAudioDataType, 256);
- _mixer->setVolumeForSoundType(SoundMixer::kMusicAudioDataType, 256);
+ _mixer->setVolumeForSoundType(SoundMixer::kMusicAudioDataType, ConfMan.getInt("music_volume"));
+ _mixer->setVolumeForSoundType(SoundMixer::kSpeechAudioDataType, ConfMan.getInt("speech_volume"));
+ _mixer->setVolumeForSoundType(SoundMixer::kSFXAudioDataType, ConfMan.getInt("sfx_volume"));
// During normal gameplay, we care neither about mouse button releases
// nor the scroll wheel.