Browse Source

fixed bug preventing stream sources from loading data

--HG--
branch : minor
raidho36 8 years ago
parent
commit
b1c842f186
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/audio/openal/Source.cpp

+ 1 - 1
src/modules/audio/openal/Source.cpp

@@ -178,7 +178,7 @@ Source::Source(Pool *pool, love::sound::Decoder *decoder)
 	, bitDepth(decoder->getBitDepth())
 	, bitDepth(decoder->getBitDepth())
 	, decoder(decoder)
 	, decoder(decoder)
 	, toLoop(0)
 	, toLoop(0)
-	, unusedBufferTop(-1)
+	, unusedBufferTop(MAX_BUFFERS - 1)
 {
 {
 	if (getFormat(decoder->getChannels(), decoder->getBitDepth()) == 0)
 	if (getFormat(decoder->getChannels(), decoder->getBitDepth()) == 0)
 		throw InvalidFormatException(decoder->getChannels(), decoder->getBitDepth());
 		throw InvalidFormatException(decoder->getChannels(), decoder->getBitDepth());