aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-30 15:38:31 +0000
committerJohannes Schickel2010-01-30 15:38:31 +0000
commit5539f0d3589ed5a30a31c71f3b8f1f9e899c5369 (patch)
treed810a53b05d10bc3a574061c80f82019477c5461
parent3125dfe66e7cad99f262eb05d26df05ca15c7a95 (diff)
downloadscummvm-rg350-5539f0d3589ed5a30a31c71f3b8f1f9e899c5369.tar.gz
scummvm-rg350-5539f0d3589ed5a30a31c71f3b8f1f9e899c5369.tar.bz2
scummvm-rg350-5539f0d3589ed5a30a31c71f3b8f1f9e899c5369.zip
Add some TODO item.
svn-id: r47721
-rw-r--r--sound/decoders/raw.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/decoders/raw.cpp b/sound/decoders/raw.cpp
index 0fe11f252c..5279653db8 100644
--- a/sound/decoders/raw.cpp
+++ b/sound/decoders/raw.cpp
@@ -155,6 +155,9 @@ int RawAudioStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16 *buffer,
if (_bufferLeft == 0 && _diskLeft > 0) {
int32 readAmount = MIN(_diskLeft, BUFFER_SIZE);
+ // TODO: We should check for both seek and read to success.
+ // If that is not the case, we should probably stop the
+ // stream playback.
_stream->seek(_filePos, SEEK_SET);
_stream->read(_buffer, readAmount * (is16Bit? 2: 1));