From 4e07649c972732dd9a97c77927cf9039e65f450b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 6 Sep 2003 23:35:42 +0000 Subject: [PATCH] small tweak requested by unused on IRC svn-id: r10053 --- scumm/sound.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 377adfb46ee..5a7a2c13ec6 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -436,8 +436,8 @@ void Sound::playSound(int soundID) { size = READ_BE_UINT16(ptr + 12); rate = 3579545 / READ_BE_UINT16(ptr + 20); sound = (char *)malloc(size); - int vol = ptr[24] << 1; - memcpy(sound,ptr + READ_BE_UINT16(ptr + 8),size); + int vol = ptr[24] * 4; + memcpy(sound,ptr + READ_BE_UINT16(ptr + 8), size); if ((_scumm->_features & GF_AMIGA) && (READ_BE_UINT16(ptr + 16) || READ_BE_UINT16(ptr + 6))) { // the first check is for pitch-bending looped sounds (i.e. "pouring liquid", "biplane dive", etc.) // the second check is for simple looped sounds @@ -466,7 +466,7 @@ void Sound::playSound(int soundID) { rate = 3579545 / READ_BE_UINT16(ptr + 2); if ((READ_BE_UINT16(ptr) == 0x357c) && (READ_BE_UINT16(ptr + 4) == 8)) - vol = READ_BE_UINT16(ptr + 2) * 2; + vol = READ_BE_UINT16(ptr + 2) * 4; ptr += 2; i += 2; }