aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;