diff options
author | Max Horn | 2004-12-25 23:43:05 +0000 |
---|---|---|
committer | Max Horn | 2004-12-25 23:43:05 +0000 |
commit | 81b6e9e1e6119c85e8b21739fea3580183154e5d (patch) | |
tree | 90ff4fbc56afcee2ed328c3371511083f2710107 /scumm | |
parent | 65ca0a07289216d7183f86b8d3b76f0033c8d34e (diff) | |
download | scummvm-rg350-81b6e9e1e6119c85e8b21739fea3580183154e5d.tar.gz scummvm-rg350-81b6e9e1e6119c85e8b21739fea3580183154e5d.tar.bz2 scummvm-rg350-81b6e9e1e6119c85e8b21739fea3580183154e5d.zip |
Get rid of the useless & troublesome master_volume
svn-id: r16328
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scumm.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 57fb2ad54b..338b942429 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -1380,20 +1380,19 @@ void ScummEngine::setupMusic(int midi) { void ScummEngine::setupVolumes() { // Sync the engine with the config manager - int soundVolumeMaster = ConfMan.getInt("master_volume"); int soundVolumeMusic = ConfMan.getInt("music_volume"); int soundVolumeSfx = ConfMan.getInt("sfx_volume"); int soundVolumeSpeech = ConfMan.getInt("speech_volume"); if (_musicEngine) { - _musicEngine->setMusicVolume(soundVolumeMusic * soundVolumeMaster / 255); + _musicEngine->setMusicVolume(soundVolumeMusic); } - _mixer->setVolume(soundVolumeSfx * soundVolumeMaster / 255); + _mixer->setVolume(soundVolumeSfx); _mixer->setMusicVolume(soundVolumeMusic); if (_imuseDigital) { - _mixer->setVolume(soundVolumeMaster); + _mixer->setVolume(255); _imuseDigital->setGroupMusicVolume(soundVolumeMusic / 2); _imuseDigital->setGroupSfxVolume(soundVolumeSfx / 2); _imuseDigital->setGroupVoiceVolume(soundVolumeSpeech / 2); |