From f7bd7bc0fb188243a6601701347794cccf9c57a8 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 9 Mar 2005 00:22:22 +0000 Subject: [PATCH] removed the 1/4th volume scaledown on video capture git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5067 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_mix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snd_mix.c b/snd_mix.c index 319eebeb..2f1a7d43 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -45,11 +45,11 @@ void S_CaptureAVISound(portable_samplepair_t *buf, size_t length) // write the sound buffer as little endian 16bit interleaved stereo for(i = 0;i < length;i++) { - n = buf[i].left >> 2; // quiet enough to prevent clipping most of the time + n = buf[i].left; n = bound(-32768, n, 32767); out[i*4+0] = n & 0xFF; out[i*4+1] = (n >> 8) & 0xFF; - n = buf[i].right >> 2; // quiet enough to prevent clipping most of the time + n = buf[i].right; n = bound(-32768, n, 32767); out[i*4+2] = n & 0xFF; out[i*4+3] = (n >> 8) & 0xFF; -- 2.39.2