mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
fixed bug preventing stream sources from loading data
--HG-- branch : minor
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user