From 98b08b42c82e591dc0259003be04c7aefa2a1fda Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 11 Sep 2009 09:39:55 +0000 Subject: [PATCH] play silence during timedemos git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9174 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_mix.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snd_mix.c b/snd_mix.c index 28fd81ef..ec3de1b7 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -105,6 +105,10 @@ static void S_ConvertPaintBuffer(const portable_sampleframe_t *painted_ptr, void *snd_out++ = bound(-32768, val, 32767); } } + + // noise is really really annoying + if (cls.timedemo) + memset(rb_ptr, 0, nbframes * channels * width); } else // 8bit { @@ -161,6 +165,10 @@ static void S_ConvertPaintBuffer(const portable_sampleframe_t *painted_ptr, void *snd_out++ = bound(0, val, 255); } } + + // noise is really really annoying + if (cls.timedemo) + memset(rb_ptr, 128, nbframes * channels); } } -- 2.39.2