From: havoc Date: Wed, 27 Feb 2008 16:05:58 +0000 (+0000) Subject: slight change in location of a piece of code, should have no effect X-Git-Tag: xonotic-v0.1.0preview~2374 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=00d86bd5c1372c39c3af6754df94c92bc4aa7fd0;p=xonotic%2Fdarkplaces.git slight change in location of a piece of code, should have no effect (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 --- diff --git a/snd_main.c b/snd_main.c index af9c4a30..8d6a1354 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1550,10 +1550,6 @@ static void S_PaintAndSubmit (void) 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()) { @@ -1597,6 +1593,10 @@ static void S_PaintAndSubmit (void) 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