Reset the buffer played count when the queue is removed via the AL_BUFFER property

This commit is contained in:
Chris Robinson 2009-08-11 14:16:30 -07:00
parent 4ee3972f15
commit 32060f53cd

View File

@ -633,6 +633,7 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
{
// Source is now in UNDETERMINED mode
pSource->lSourceType = AL_UNDETERMINED;
pSource->BuffersPlayed = 0;
}
// Update AL_BUFFER parameter