Make sure the source write position is at least 15ms ahead of the read

This commit is contained in:
Chris Robinson
2012-02-16 00:11:50 -08:00
parent 5d17cef55f
commit 84ba0a94c0
+3
View File
@@ -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