From: havoc Date: Thu, 28 Feb 2008 03:35:17 +0000 (+0000) Subject: fixed a problem with snd_renderbuffer->endframe being updated in the X-Git-Tag: xonotic-v0.1.0preview~2368 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d019c87dba3e0ca70ee481b8ffcf15ab8d3a5d99;p=xonotic%2Fdarkplaces.git 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 --- 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;