From 84ba0a94c0a812cb07edec9e964c161f4d55b8b1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 16 Feb 2012 00:11:50 -0800 Subject: [PATCH] Make sure the source write position is at least 15ms ahead of the read --- OpenAL32/alSource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index d52c69da..68dffb64 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1985,6 +1985,9 @@ static ALvoid GetSourceOffset(ALsource *Source, ALenum name, ALdouble *offset, A return; } + if(updateLen > 0.0 && updateLen < 0.015) + updateLen = 0.015; + // Get Current SamplesPlayed (NOTE : This is the offset into the *current* buffer) readPos = Source->position; // Add length of any processed buffers in the queue -- 2.11.4.GIT