aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-12-25 23:43:05 +0000
committerMax Horn2004-12-25 23:43:05 +0000
commit81b6e9e1e6119c85e8b21739fea3580183154e5d (patch)
tree90ff4fbc56afcee2ed328c3371511083f2710107 /scumm
parent65ca0a07289216d7183f86b8d3b76f0033c8d34e (diff)
downloadscummvm-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.cpp7
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);