From 26956b9c096b3ba04df224596245cc2f3f012c00 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 12 Apr 2007 00:37:20 +0000 Subject: [PATCH] implemented two more checks for cls.timedemo to bypass snd_blocked git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7080 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snd_main.c b/snd_main.c index 9c6bd696..14e2a6a8 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1431,7 +1431,7 @@ static void S_PaintAndSubmit (void) if (snd_renderbuffer == NULL || nosound.integer) return; - if (snd_blocked > 0 && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime)) + if (snd_blocked > 0 && !cls.timedemo && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime)) return; // Update sound time @@ -1506,7 +1506,7 @@ void S_Update(const matrix4x4_t *listenermatrix) if (snd_renderbuffer == NULL || nosound.integer) return; - if (snd_blocked > 0 && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime)) + if (snd_blocked > 0 && !cls.timedemo && !(cls.capturevideo.soundrate && !cls.capturevideo.realtime)) return; // If snd_swapstereo or snd_channellayout has changed, recompute the channel layout -- 2.39.2