wrong place, causing windows waveOut audio to fail
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8155
d7cf8633-e32d-0410-b094-
e92efae38249
S_MixToBuffer(&snd_renderbuffer->ring[startoffset * snd_renderbuffer->format.width * snd_renderbuffer->format.channels], nbframes);
paintedtime += nbframes;
+ snd_renderbuffer->endframe = paintedtime;
}
if (!simsound)
SndSys_UnlockRenderBuffer();
- snd_renderbuffer->endframe = endtime;
-
// Remove outdated samples from the ring buffer, if any
if (snd_renderbuffer->startframe < soundtime)
snd_renderbuffer->startframe = soundtime;