From 3b1d4ace4097fb213e5a55b3417465318e083319 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 31 Dec 2009 12:38:17 +0000 Subject: SCI/new music: trigger signal when fade is completed, fixes lsl1 dance with girl svn-id: r46798 --- engines/sci/sfx/music.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/sfx/music.cpp b/engines/sci/sfx/music.cpp index faf674406c..b745819648 100644 --- a/engines/sci/sfx/music.cpp +++ b/engines/sci/sfx/music.cpp @@ -372,11 +372,12 @@ void MusicEntry::doFade() { else { fadeTicker = fadeTickerStep; volume += fadeStep; + SegManager *segMan = ((SciEngine *)g_engine)->getEngineState()->_segMan; // HACK if (((fadeStep > 0) && (volume >= fadeTo)) || ((fadeStep < 0) && (volume <= fadeTo))) { volume = fadeTo; fadeStep = 0; + PUT_SEL32V(segMan, soundObj, signal, 0xFFFF); } - SegManager *segMan = ((SciEngine *)g_engine)->getEngineState()->_segMan; // HACK PUT_SEL32V(segMan, soundObj, vol, volume); pMidiParser->setVolume(volume); -- cgit v1.2.3