From b1c842f186b14e1d33bc3bc80472c4891cda75d5 Mon Sep 17 00:00:00 2001 From: raidho36 Date: Wed, 12 Oct 2016 20:49:05 +0300 Subject: [PATCH] fixed bug preventing stream sources from loading data --HG-- branch : minor --- src/modules/audio/openal/Source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/audio/openal/Source.cpp b/src/modules/audio/openal/Source.cpp index d0b8c6065..b842e1c57 100644 --- a/src/modules/audio/openal/Source.cpp +++ b/src/modules/audio/openal/Source.cpp @@ -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());