diff options
-rw-r--r-- | sound/decoders/raw.cpp | 3 |
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)); |