only unqueue processed buffers
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1870 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -136,7 +136,9 @@ struct oggstream
|
||||
|
||||
void empty()
|
||||
{
|
||||
loopi(2)
|
||||
ALint processed;
|
||||
alGetSourcei(sourceid, AL_BUFFERS_PROCESSED, &processed);
|
||||
loopi(processed)
|
||||
{
|
||||
alSourceUnqueueBuffers(sourceid, 1, &bufferids[i]);
|
||||
alerr();
|
||||
|
||||
Reference in New Issue
Block a user