From af9b88529d08cdf7a5466c98edc20a0b0b19e72f Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 25 Nov 2005 23:03:31 +0000 Subject: [PATCH] fix a sound conversion bug in mono output git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5838 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_mix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snd_mix.c b/snd_mix.c index f4a857d3..7aef154e 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -303,7 +303,9 @@ void S_TransferPaintBuffer(int endtime) { // 1.0 mono for (i = 0;i < snd_frames;i++, snd_p++) + { val = ((snd_p->sample[0]+snd_p->sample[1]) >> 9) + 128;*snd_out++ = bound(0, val, 255); + } } } } -- 2.39.2