diff options
author | Vladimir Menshakov | 2011-06-13 19:05:59 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:45 +0200 |
commit | 5a8b1dbfff587fe0eb689d81eed60fe879fb8f36 (patch) | |
tree | 1d98d7fa4e029ba283aa20c72ef80af1e70794cf /engines/dreamweb/dreamweb.cpp | |
parent | 09346f01d7caa18dbfeed94f4913686e5f00169d (diff) | |
download | scummvm-rg350-5a8b1dbfff587fe0eb689d81eed60fe879fb8f36.tar.gz scummvm-rg350-5a8b1dbfff587fe0eb689d81eed60fe879fb8f36.tar.bz2 scummvm-rg350-5a8b1dbfff587fe0eb689d81eed60fe879fb8f36.zip |
DREAMWEB: catch the sample changing, more stubs
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 6b7eef1591..0c2f7b4a61 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -68,6 +68,8 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam _inSaveFile = 0; _speed = 1; _oldMouseState = 0; + _channel0 = 0; + _channel1 = 0; } DreamWebEngine::~DreamWebEngine() { @@ -378,8 +380,21 @@ void DreamWebEngine::soundHandler() { if (ch1 == 255) ch1 = 0; uint ch0loop = _context.data.byte(dreamgen::kCh0repeat); - if (ch0 || ch1) - debug("volume: %u, samples: %u, %u, loop0: %u", volume, ch0, ch1, ch0loop); + + if (_channel0 != ch0) { + _channel0 = ch0; + if (ch0) { + //Audio::AudioStream *stream = LoopingAudioStream(Audio::makeRawStream(data, size, 22050, 0), ch0loops); + //_mixer->playStream(Audio::Mixer::kMusicType, &_musicHandle, stream); //dispose is YES by default + debug(1, "playing sound %u at channel 0, loop: %u", ch0, ch0loop); + } + } + if (_channel1 != ch1) { + _channel1 = ch1; + if (ch1) { + debug(1, "playing sound %u at channel 1", ch1); + } + } } void DreamWebEngine::loadSounds(uint bank, const Common::String &file) { |