aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2013-03-19 10:39:22 -0400
committerMatthew Hoops2013-03-19 10:40:47 -0400
commitfa3136fbc4385f1f14a87f21dfa2e7bf82aac66d (patch)
tree34fe61e11214e2dd2ba0be15b6ea4f98c7d34b79 /engines
parentd85ac53420ca333bf97814cba0411e700adebe83 (diff)
downloadscummvm-rg350-fa3136fbc4385f1f14a87f21dfa2e7bf82aac66d.tar.gz
scummvm-rg350-fa3136fbc4385f1f14a87f21dfa2e7bf82aac66d.tar.bz2
scummvm-rg350-fa3136fbc4385f1f14a87f21dfa2e7bf82aac66d.zip
PEGASUS: Make sure sounds are rewound before playing them
Diffstat (limited to 'engines')
-rw-r--r--engines/pegasus/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/pegasus/sound.cpp b/engines/pegasus/sound.cpp
index bf15858e80..5b437b81d4 100644
--- a/engines/pegasus/sound.cpp
+++ b/engines/pegasus/sound.cpp
@@ -87,6 +87,9 @@ void Sound::playSound() {
stopSound();
+ // Make sure the sound is back at the beginning before we play it
+ _stream->rewind();
+
if (_fader)
setVolume(_fader->getFaderValue());