aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2002-08-04 16:54:59 +0000
committerMax Horn2002-08-04 16:54:59 +0000
commit30a2f9b23b9b5c1c1b2b198a1021c93202597bc8 (patch)
tree71cd087665a7665c0885d914756a50b12b826643 /sound
parent9fa6145d9081e03c9bd89e20ad93d24ad625ab96 (diff)
downloadscummvm-rg350-30a2f9b23b9b5c1c1b2b198a1021c93202597bc8.tar.gz
scummvm-rg350-30a2f9b23b9b5c1c1b2b198a1021c93202597bc8.tar.bz2
scummvm-rg350-30a2f9b23b9b5c1c1b2b198a1021c93202597bc8.zip
fixed compile error
svn-id: r4702
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index daa9ab842d..6830483d4c 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -201,6 +201,8 @@ void SoundMixer::setup_premix(void *param, PremixProc *proc)
void SoundMixer::set_volume(int volume)
{
+ int i;
+
// Check range
if (volume > 256)
volume = 256;
@@ -208,7 +210,7 @@ void SoundMixer::set_volume(int volume)
volume = 0;
// The volume table takes 8 bit unsigned data as index and returns 16 bit signed
- for (int i = 0; i < 128; i++)
+ for (i = 0; i < 128; i++)
_volume_table[i] = i * volume ;
for (i = -128; i < 0; i++)