aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamieson Christian2003-10-03 19:32:18 +0000
committerJamieson Christian2003-10-03 19:32:18 +0000
commit5fa23e5fee79e2ce99cdda3d890574c969f10f58 (patch)
tree6a885de3639cd97dc4500cda9e4bcaf87915f3b3
parent056974821a9630f8f5c8971320471e5864e7e07f (diff)
downloadscummvm-rg350-5fa23e5fee79e2ce99cdda3d890574c969f10f58.tar.gz
scummvm-rg350-5fa23e5fee79e2ce99cdda3d890574c969f10f58.tar.bz2
scummvm-rg350-5fa23e5fee79e2ce99cdda3d890574c969f10f58.zip
Fix for Bug [817242] ALL: MT-32 to GM key velocity conversion
Implemented dynamic range matching for MT-32 tracks routed to GM output devices. svn-id: r10573
-rw-r--r--scumm/imuse_player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/imuse_player.cpp b/scumm/imuse_player.cpp
index a680dcbe64..69b577ed43 100644
--- a/scumm/imuse_player.cpp
+++ b/scumm/imuse_player.cpp
@@ -242,6 +242,8 @@ void Player::send(uint32 b) {
case 0x9: // Key On
if (!_scanning) {
+ if (_isMT32 && !_se->isNativeMT32())
+ param2 = (((param2 * 3) >> 2) + 32) & 0x7F;
if ((part = getPart(chan)) != 0)
part->noteOn(param1, param2);
} else {