From 00d86bd5c1372c39c3af6754df94c92bc4aa7fd0 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 27 Feb 2008 16:05:58 +0000 Subject: [PATCH] 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 --- snd_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2