aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamweb.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-14 10:32:00 +0400
committerAlyssa Milburn2011-06-15 17:34:59 +0200
commit8a878356383d039f225acfe330aa999322a128e0 (patch)
treeb2fa611160ac6944050ba0a9f51d43afb56441fe /engines/dreamweb/dreamweb.cpp
parent9008f2c4426a65fb248e4d96e5094490fb125b45 (diff)
downloadscummvm-rg350-8a878356383d039f225acfe330aa999322a128e0.tar.gz
scummvm-rg350-8a878356383d039f225acfe330aa999322a128e0.tar.bz2
scummvm-rg350-8a878356383d039f225acfe330aa999322a128e0.zip
DREAMWEB: added comment about volumes
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r--engines/dreamweb/dreamweb.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index fd56c2dd1b..818c864127 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -453,6 +453,16 @@ void DreamWebEngine::soundHandler() {
_context.ax = _context.pop();
uint volume = _context.data.byte(dreamgen::kVolume);
+ //.vol file loaded into soundbuf:0x4000
+ //volume table at (volume * 0x100 + 0x3f00)
+ //volume value could be from 1 to 7
+ //1 - 0x10-0xff
+ //2 - 0x1f-0xdf
+ //3 - 0x2f-0xd0
+ //4 - 0x3e-0xc1
+ //5 - 0x4d-0xb2
+ //6 - 0x5d-0xa2
+ //7 - 0x6f-0x91
volume = (8 - volume) * Audio::Mixer::kMaxChannelVolume / 8;
_mixer->setChannelVolume(_channelHandle[0], volume);