aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2002-12-08 14:18:41 +0000
committerMax Horn2002-12-08 14:18:41 +0000
commit7e2391fce26dbed93b028f841a9576244c599105 (patch)
treebf665a77e07c0e341cc721eb6e4ef1623305a1ef /sound
parent0f623302688008ae233868efeb835ef78ba04ed2 (diff)
downloadscummvm-rg350-7e2391fce26dbed93b028f841a9576244c599105.tar.gz
scummvm-rg350-7e2391fce26dbed93b028f841a9576244c599105.tar.bz2
scummvm-rg350-7e2391fce26dbed93b028f841a9576244c599105.zip
Patch #641607: Louder MP3 sound effects
svn-id: r5882
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index f04538aba0..ea469ed8ae 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -809,7 +809,7 @@ static inline int scale_sample(mad_fixed_t sample) {
sample = -MAD_F_ONE;
/* quantize and scale to not saturate when mixing a lot of channels */
- return sample >> (MAD_F_FRACBITS + 2 - 16);
+ return sample >> (MAD_F_FRACBITS + 1 - 16);
}
void SoundMixer::ChannelMP3::mix(int16 * data, uint len) {