aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-16 00:11:50 -0800
committerChris Robinson <[email protected]>2012-02-16 00:11:50 -0800
commit84ba0a94c0a812cb07edec9e964c161f4d55b8b1 (patch)
tree3af6460f48f1eb83dc1355fe5a7fe401df11b023
parent5d17cef55fe291ceed83402c1d2af4da93e0f6d7 (diff)
Make sure the source write position is at least 15ms ahead of the read
-rw-r--r--OpenAL32/alSource.c3
1 files changed, 3 insertions, 0 deletions
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