diff options
author | Vladimir Menshakov | 2010-01-08 16:31:48 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-01-08 16:31:48 +0000 |
commit | 85adbdb1ad7615b4d8177f9c3727ac4bcd5d1625 (patch) | |
tree | c7f4eb288aeb49671a7ec9c307339cf9a818bffd | |
parent | 616e4626f59ba354d420c60d59cb797b351de407 (diff) | |
download | scummvm-rg350-85adbdb1ad7615b4d8177f9c3727ac4bcd5d1625.tar.gz scummvm-rg350-85adbdb1ad7615b4d8177f9c3727ac4bcd5d1625.tar.bz2 scummvm-rg350-85adbdb1ad7615b4d8177f9c3727ac4bcd5d1625.zip |
fixed invalid volume setting
svn-id: r47161
-rw-r--r-- | engines/teenagent/music.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/teenagent/music.cpp b/engines/teenagent/music.cpp index 69ccdc20d6..abb4a18dd4 100644 --- a/engines/teenagent/music.cpp +++ b/engines/teenagent/music.cpp @@ -95,7 +95,8 @@ bool MusicPlayer::load(int id) { } else if ((cmd & 0xF0) == 0x40) { byte vol = stream->readByte(); //debug(1, "%02x: set volume %02x -> %02x", cmd, row.channels[(cmd & 0x0F) - 1].volume, vol); - row.channels[(cmd & 0x0F) - 1].volume = vol; + //channel volume 0x40 * music volume 0x40 mixed with high bytes + row.channels[(cmd & 0x0F) - 1].volume = vol * 16; } else { debug(0, "unhandled music command %02x", cmd); } |