diff options
author | Vladimir Menshakov | 2011-06-14 01:27:52 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:58 +0200 |
commit | 84745add6e92d33949e71e53f253fea5c5ce4a0a (patch) | |
tree | 27ae5dd4c8915aa289a3b9bff962019d610e4425 /engines | |
parent | 25824b20edf81a52a0648fc55d64d6f5973af2c6 (diff) | |
download | scummvm-rg350-84745add6e92d33949e71e53f253fea5c5ce4a0a.tar.gz scummvm-rg350-84745add6e92d33949e71e53f253fea5c5ce4a0a.tar.bz2 scummvm-rg350-84745add6e92d33949e71e53f253fea5c5ce4a0a.zip |
DREAMWEB: added volume support (stubs for now)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 5ec60b4249..8a144b2175 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -47,6 +47,7 @@ namespace dreamgen { void doshake(dreamgen::Context &context); void dofade(dreamgen::Context &context); + void volumeadjust(dreamgen::Context &context); } namespace DreamWeb { @@ -447,7 +448,13 @@ bool DreamWebEngine::loadSpeech(const Common::String &filename) { void DreamWebEngine::soundHandler() { - //uint8 volume = _context.data.byte(dreamgen::kVolume); + _context.push(_context.ax); + volumeadjust(_context); + _context.ax = _context.pop(); + + uint8 volume = _context.data.byte(dreamgen::kVolume); + //if (volume) + // debug(1, "volume = %u", volume); uint8 ch0 = _context.data.byte(dreamgen::kCh0playing); if (ch0 == 255) ch0 = 0; |