Might fix sdl audio...

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3696 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2010-12-13 23:13:16 +00:00
parent 207393bb3b
commit 08562f40a2
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ static void VARGS SSDL_Paint(void *userdata, qbyte *stream, int len)
{ //buffer will wrap, fill in the rest
memcpy(stream, (char*)sc->sn.buffer + (sc->snd_sent%buffersize), buffersize - (sc->snd_sent%buffersize));
stream += buffersize - sc->snd_sent%buffersize;
sc->snd_sent += buffersize - sc->snd_sent%buffersize;
len -= buffersize - (sc->snd_sent%buffersize);
if (len < 0)
return;