From d019c87dba3e0ca70ee481b8ffcf15ab8d3a5d99 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 28 Feb 2008 03:35:17 +0000 Subject: [PATCH] fixed a problem with snd_renderbuffer->endframe being updated in the wrong place, causing windows waveOut audio to fail git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8155 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snd_main.c b/snd_main.c index 8d6a1354..84e2469e 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1587,12 +1587,11 @@ static void S_PaintAndSubmit (void) 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; -- 2.39.2