From 5989195d8433bd52574c0bf1a68629f6b6b97f1e Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 25 Dec 2009 13:17:30 +0000 Subject: SCI/newmusic: _signalSet, _signalToSet init, debug output added for signals svn-id: r46548 --- engines/sci/sfx/music.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/sci/sfx/music.cpp b/engines/sci/sfx/music.cpp index 21e1a6d98f..289efa14b1 100644 --- a/engines/sci/sfx/music.cpp +++ b/engines/sci/sfx/music.cpp @@ -490,6 +490,9 @@ MidiParser_SCI::MidiParser_SCI() : // values of ppqn and tempo are found experimentally and may be wrong _ppqn = 1; setTempo(16667); + + _signalSet = false; + _signalToSet = 0; } //--------------------------------------------- MidiParser_SCI::~MidiParser_SCI() { @@ -535,6 +538,7 @@ void MidiParser_SCI::parseNextEvent(EventInfo &info) { if (_signalSet) { _signalSet = false; PUT_SEL32V(segMan, _pSnd->soundObj, signal, _signalToSet); + warning("signal %04x", _signalToSet); } info.start = _position._play_pos; @@ -650,6 +654,7 @@ void MidiParser_SCI::parseNextEvent(EventInfo &info) { } else { _pSnd->status = kSndStatusStopped; PUT_SEL32V(segMan, _pSnd->soundObj, signal, 0xFFFF); + warning("signal EOT"); } } break; -- cgit v1.2.3