Add some TODO item.

svn-id: r47721
This commit is contained in:
Johannes Schickel 2010-01-30 15:38:31 +00:00
parent 3125dfe66e
commit 5539f0d358

View File

@ -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));