aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/coktelvideo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp
index 964abc8369..16df54d85f 100644
--- a/engines/gob/coktelvideo.cpp
+++ b/engines/gob/coktelvideo.cpp
@@ -257,6 +257,7 @@ void Imd::disableSound() {
delete _audioStream;
_audioStream = 0;
+ _soundStage = 0;
}
_soundEnabled = false;
_mixer = 0;
@@ -526,8 +527,9 @@ CoktelVideo::State Imd::processFrame(uint16 frame) {
_stream->read(soundBuf, dataLength);
unsignedToSigned(soundBuf, dataLength);
- _soundStage = 1;
- startSound = true;
+ if (_soundStage == 1)
+ startSound = true;
+
_audioStream->queueBuffer(soundBuf, dataLength);
} else
_stream->seek(dataLength, SEEK_CUR);