aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-15 23:16:43 +0000
committerJohannes Schickel2010-01-15 23:16:43 +0000
commitf1439b4fa7246c97820c69bf12625e9ec50e2221 (patch)
tree3a68549182db9f86ec07dfa2ec64ba6d6b58f01c /sound
parentfa079a6d6f118a09a9bdeb678f57584fb8e1d8d4 (diff)
downloadscummvm-rg350-f1439b4fa7246c97820c69bf12625e9ec50e2221.tar.gz
scummvm-rg350-f1439b4fa7246c97820c69bf12625e9ec50e2221.tar.bz2
scummvm-rg350-f1439b4fa7246c97820c69bf12625e9ec50e2221.zip
Fix QueuingAudioStreamImpl::endOfStream implementation. This fixes cut off speech in COMI for me.
svn-id: r47316
Diffstat (limited to 'sound')
-rw-r--r--sound/audiostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index bd628d18d7..168ca49e2d 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -728,7 +728,7 @@ public:
//Common::StackLock lock(_mutex);
return _queue.empty();
}
- virtual bool endOfStream() const { return _finished; }
+ virtual bool endOfStream() const { return _finished && _queue.empty(); }
// Implement the QueuingAudioStream API
virtual void queueAudioStream(AudioStream *stream, bool disposeAfterUse);