diff options
author | Vladimir Menshakov | 2011-06-14 01:41:04 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:58 +0200 |
commit | 9008f2c4426a65fb248e4d96e5094490fb125b45 (patch) | |
tree | 19e678a506ac4152f5f39e5130c19f09520e43f1 | |
parent | dca78aa964f3ddce337f218c649219753eafc513 (diff) | |
download | scummvm-rg350-9008f2c4426a65fb248e4d96e5094490fb125b45.tar.gz scummvm-rg350-9008f2c4426a65fb248e4d96e5094490fb125b45.tar.bz2 scummvm-rg350-9008f2c4426a65fb248e4d96e5094490fb125b45.zip |
DREAMWEB: added volume setting (maybe wrong)
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 7 |
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; |