aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-04-06 19:06:05 +0200
committerWillem Jan Palenstijn2013-04-06 20:31:34 +0200
commit6f3716ae749829b5f7b446f4a97eb244570a7961 (patch)
treec076391884c0bd5a94af76d96a19e353f5c06107 /engines/sci/sound
parent18feefbe40c06143e27fe45fbe8c5e05455a0294 (diff)
downloadscummvm-rg350-6f3716ae749829b5f7b446f4a97eb244570a7961.tar.gz
scummvm-rg350-6f3716ae749829b5f7b446f4a97eb244570a7961.tar.bz2
scummvm-rg350-6f3716ae749829b5f7b446f4a97eb244570a7961.zip
SCI: Re-initialize more of MusicEntry on play
This fixes bug #3267956.
Diffstat (limited to 'engines/sci/sound')
-rw-r--r--engines/sci/sound/soundcmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index d03e084782..737a130665 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -201,6 +201,10 @@ void SoundCommandParser::processPlaySound(reg_t obj) {
resourceId, musicSlot->loop, musicSlot->priority, musicSlot->volume);
_music->soundPlay(musicSlot);
+
+ // Reset any left-over signals
+ musicSlot->signal = 0;
+ musicSlot->fadeStep = 0;
}
reg_t SoundCommandParser::kDoSoundRestore(int argc, reg_t *argv, reg_t acc) {