(this makes it closer to the way it was)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8148
d7cf8633-e32d-0410-b094-
e92efae38249
soundtime = newsoundtime;
recording_sound = (cls.capturevideo.soundrate != 0);
soundtime = newsoundtime;
recording_sound = (cls.capturevideo.soundrate != 0);
- // Remove outdated samples from the ring buffer, if any
- if (snd_renderbuffer->startframe < soundtime)
- snd_renderbuffer->startframe = soundtime;
-
// Lock submitbuffer
if (!simsound && !SndSys_LockRenderBuffer())
{
// Lock submitbuffer
if (!simsound && !SndSys_LockRenderBuffer())
{
snd_renderbuffer->endframe = endtime;
snd_renderbuffer->endframe = endtime;
+ // Remove outdated samples from the ring buffer, if any
+ if (snd_renderbuffer->startframe < soundtime)
+ snd_renderbuffer->startframe = soundtime;
+
if (simsound)
snd_renderbuffer->startframe = snd_renderbuffer->endframe;
else
if (simsound)
snd_renderbuffer->startframe = snd_renderbuffer->endframe;
else