diff options
author | James Brown | 2002-03-07 08:11:48 +0000 |
---|---|---|
committer | James Brown | 2002-03-07 08:11:48 +0000 |
commit | 4eb99938bf7b638cf1797445a9545e17d47ea882 (patch) | |
tree | 34f2ad808166e7fc441fb52a790e352a43eddd0c /sound/imuse.cpp | |
parent | f5ff443424e1316cdcd6fed036a9dab97a1bbade (diff) | |
download | scummvm-rg350-4eb99938bf7b638cf1797445a9545e17d47ea882.tar.gz scummvm-rg350-4eb99938bf7b638cf1797445a9545e17d47ea882.tar.bz2 scummvm-rg350-4eb99938bf7b638cf1797445a9545e17d47ea882.zip |
Fixed music volume control for some games.
svn-id: r3680
Diffstat (limited to 'sound/imuse.cpp')
-rw-r--r-- | sound/imuse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/imuse.cpp b/sound/imuse.cpp index 8c3a4a5d9a..2dccd75975 100644 --- a/sound/imuse.cpp +++ b/sound/imuse.cpp @@ -635,14 +635,14 @@ int SoundEngine::set_music_volume(uint vol) { } int SoundEngine::set_master_volume(uint vol) { - int i; + int i; if (vol > 127) return -1; if (_music_volume > 0) vol = vol / (100 / _music_volume); - _master_volume = vol; + _master_volume = vol; for (i=0; i!=8; i++) _channel_volume_eff[i] = (_channel_volume[i]+1) * vol >> 7; update_volumes(); |