summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-11 14:16:30 -0700
committerChris Robinson <[email protected]>2009-08-11 14:16:30 -0700
commit32060f53cd465b2cd8a05aa9ecb172dbd5ae501d (patch)
treebfce4f0c127fadc6b7786196a0cddc853447a0ea /OpenAL32/alSource.c
parent4ee3972f151ac979473d35b6e7933794dacf801c (diff)
Reset the buffer played count when the queue is removed via the AL_BUFFER property
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 9ab0e43a..262d2786 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -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