mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
207393bb3b
commit
08562f40a2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue