Cleanup.
svn-id: r48921
This commit is contained in:
parent
e7f29db498
commit
c5436aebdd
1 changed files with 2 additions and 5 deletions
|
@ -145,11 +145,8 @@ int RawStream<is16Bit, isUnsigned, isLE>::readBuffer(int16 *buffer, const int nu
|
||||||
int len = fillBuffer(samplesLeft);
|
int len = fillBuffer(samplesLeft);
|
||||||
|
|
||||||
// In case we were not able to read any samples
|
// In case we were not able to read any samples
|
||||||
// and we reached the end of the stream we will
|
// we will stop reading here.
|
||||||
// skip reading here. We do not check endOfData
|
if (!len)
|
||||||
// alone here to allow empty blocks in the stream.
|
|
||||||
// (TODO/FIXME: Do we really need that?)
|
|
||||||
if (!len && endOfData())
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Adjust the samples left to read.
|
// Adjust the samples left to read.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue