From: havoc Date: Fri, 11 Sep 2009 09:39:55 +0000 (+0000) Subject: play silence during timedemos X-Git-Tag: xonotic-v0.1.0preview~1458 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98b08b42c82e591dc0259003be04c7aefa2a1fda;p=xonotic%2Fdarkplaces.git play silence during timedemos git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9174 d7cf8633-e32d-0410-b094-e92efae38249 --- 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); } }