diff options
author | Max Horn | 2004-12-18 11:07:52 +0000 |
---|---|---|
committer | Max Horn | 2004-12-18 11:07:52 +0000 |
commit | 6dfb2f2dfd60fcc4beccb5013ae2bbd9eed736ad (patch) | |
tree | 1660d458f5a60e48c24fcb96baae33775224f9ab | |
parent | f344976a350f1edd6b95d80d30a4cc9146e7a7d9 (diff) | |
download | scummvm-rg350-6dfb2f2dfd60fcc4beccb5013ae2bbd9eed736ad.tar.gz scummvm-rg350-6dfb2f2dfd60fcc4beccb5013ae2bbd9eed736ad.tar.bz2 scummvm-rg350-6dfb2f2dfd60fcc4beccb5013ae2bbd9eed736ad.zip |
Fix for bug #1087439 (Volume control regression)
svn-id: r16113
-rw-r--r-- | scumm/scumm.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index d3a5ad94d7..cbc0a06024 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -1090,8 +1090,6 @@ int ScummEngine::init(GameDetector &detector) { if (_imuse) { _imuse->setBase(res.address[rtSound]); - - _imuse->setMusicVolume(ConfMan.getInt("music_volume")); } _sound->setupSound(); @@ -1376,12 +1374,8 @@ void ScummEngine::setupVolumes() { int soundVolumeSfx = ConfMan.getInt("sfx_volume"); int soundVolumeSpeech = ConfMan.getInt("speech_volume"); - if (_imuse) { - _imuse->setMusicVolume(soundVolumeMusic); - } - if (_musicEngine) { - _musicEngine->setMusicVolume(soundVolumeMusic); + _musicEngine->setMusicVolume(soundVolumeMusic * soundVolumeMaster / 255); } _mixer->setVolume(soundVolumeSfx * soundVolumeMaster / 255); |