fixed bug preventing stream sources from loading data

--HG--
branch : minor
This commit is contained in:
raidho36
2016-10-12 20:49:05 +03:00
parent 10710d3428
commit b1c842f186
+1 -1
View File
@@ -178,7 +178,7 @@ Source::Source(Pool *pool, love::sound::Decoder *decoder)
, bitDepth(decoder->getBitDepth())
, decoder(decoder)
, toLoop(0)
, unusedBufferTop(-1)
, unusedBufferTop(MAX_BUFFERS - 1)
{
if (getFormat(decoder->getChannels(), decoder->getBitDepth()) == 0)
throw InvalidFormatException(decoder->getChannels(), decoder->getBitDepth());