From 6bd274d368e56d31c5896e06e3d055f5797dcece Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 31 Jul 2011 17:01:31 -0700 Subject: [PATCH] Add a comment to clarify some code --- buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buffer.c b/buffer.c index 66bc175..ff67e8e 100644 --- a/buffer.c +++ b/buffer.c @@ -1635,6 +1635,8 @@ static HRESULT WINAPI DS8Buffer_SetCurrentPosition(IDirectSoundBuffer8 *iface, D This->curidx = buf->numsegs - 1; if(This->isplaying) { + /* Perform a flush, so the next timer update will restart at the + * proper position */ alSourceStop(This->source); alSourcei(This->source, AL_BUFFER, 0); getALError(); -- 2.11.4.GIT