aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamweb.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-14 01:41:04 +0400
committerAlyssa Milburn2011-06-15 17:34:58 +0200
commit9008f2c4426a65fb248e4d96e5094490fb125b45 (patch)
tree19e678a506ac4152f5f39e5130c19f09520e43f1 /engines/dreamweb/dreamweb.cpp
parentdca78aa964f3ddce337f218c649219753eafc513 (diff)
downloadscummvm-rg350-9008f2c4426a65fb248e4d96e5094490fb125b45.tar.gz
scummvm-rg350-9008f2c4426a65fb248e4d96e5094490fb125b45.tar.bz2
scummvm-rg350-9008f2c4426a65fb248e4d96e5094490fb125b45.zip
DREAMWEB: added volume setting (maybe wrong)
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r--engines/dreamweb/dreamweb.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 1e4558ed54..fd56c2dd1b 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -452,9 +452,10 @@ void DreamWebEngine::soundHandler() {
volumeadjust(_context);
_context.ax = _context.pop();
- uint8 volume = _context.data.byte(dreamgen::kVolume);
- //if (volume)
- // debug(1, "volume = %u", volume);
+ uint volume = _context.data.byte(dreamgen::kVolume);
+ volume = (8 - volume) * Audio::Mixer::kMaxChannelVolume / 8;
+ _mixer->setChannelVolume(_channelHandle[0], volume);
+
uint8 ch0 = _context.data.byte(dreamgen::kCh0playing);
if (ch0 == 255)
ch0 = 0;