From: havoc Date: Fri, 25 Nov 2005 23:03:31 +0000 (+0000) Subject: fix a sound conversion bug in mono output X-Git-Tag: xonotic-v0.1.0preview~4447 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af9b88529d08cdf7a5466c98edc20a0b0b19e72f;p=xonotic%2Fdarkplaces.git fix a sound conversion bug in mono output git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5838 d7cf8633-e32d-0410-b094-e92efae38249 --- 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); + } } } }