issues addressed

warnings fixed
added type checking to Lua functions
stopping queueable source clears buffered data
getting queueable source to auto-play if it underruns and then gets re-filled
will probably require re-designing pool usage strategy

--HG--
branch : minor
This commit is contained in:
rcoaxil
2016-10-13 18:18:08 +03:00
parent b757a0534e
commit 00c02adcd0
4 changed files with 65 additions and 45 deletions
+3 -3
View File
@@ -165,6 +165,7 @@ private:
int streamAtomic(ALuint buffer, love::sound::Decoder *d);
ALuint unusedBufferPeek();
ALuint unusedBufferPeekNext();
ALuint *unusedBufferPop();
void unusedBufferPush(ALuint buffer);
void unusedBufferQueue(ALuint buffer);
@@ -177,9 +178,6 @@ private:
ALuint streamBuffers[MAX_BUFFERS];
ALuint unusedBuffers[MAX_BUFFERS];
int unusedBufferTop;
ALsizei bufferedBytes;
StrongRef<StaticDataBuffer> staticBuffer;
float pitch;
@@ -212,6 +210,8 @@ private:
StrongRef<love::sound::Decoder> decoder;
unsigned int toLoop;
int unusedBufferTop;
ALsizei bufferedBytes;
}; // Source
} // openal