aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-11-02 16:10:53 +0000
committerMax Horn2007-11-02 16:10:53 +0000
commit02b929e06e082c116f22aea9a502364ec6a6d3cf (patch)
treecfd60616522adcb7d520f120979e0e9bcd020f66
parent8eb73f269492e5123e86236f5398a14e6aa991b5 (diff)
downloadscummvm-rg350-02b929e06e082c116f22aea9a502364ec6a6d3cf.tar.gz
scummvm-rg350-02b929e06e082c116f22aea9a502364ec6a6d3cf.tar.bz2
scummvm-rg350-02b929e06e082c116f22aea9a502364ec6a6d3cf.zip
Patch #1816901: MT-32 emu: Low volume
svn-id: r29378
-rw-r--r--COPYRIGHT1
-rw-r--r--sound/softsynth/mt32/partial.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/COPYRIGHT b/COPYRIGHT
index 80dfadfed4..3a7112ed7e 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -189,3 +189,4 @@ ole
phi1
spookypeanut "spookypeanut"
tbcarey
+Tim "tipabu"
diff --git a/sound/softsynth/mt32/partial.cpp b/sound/softsynth/mt32/partial.cpp
index 7d4b985b49..ff1222e688 100644
--- a/sound/softsynth/mt32/partial.cpp
+++ b/sound/softsynth/mt32/partial.cpp
@@ -639,8 +639,8 @@ bool Partial::produceOutput(Bit16s *partialBuf, long length) {
partialBuf += donelen * 2;
#endif
while (length--) {
- *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)leftvol) >> 16);
- *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)rightvol) >> 16);
+ *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)leftvol) >> 15);
+ *partialBuf++ = (Bit16s)(((Bit32s)*mixedBuf * (Bit32s)rightvol) >> 15);
mixedBuf++;
}
return true;