From 4eb99938bf7b638cf1797445a9545e17d47ea882 Mon Sep 17 00:00:00 2001 From: James Brown Date: Thu, 7 Mar 2002 08:11:48 +0000 Subject: Fixed music volume control for some games. svn-id: r3680 --- sound/imuse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sound/imuse.cpp') 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(); -- cgit v1.2.3