From: Jaroslav Kysela Date: Wed, 19 Mar 2003 12:27:43 +0000 (+0000) Subject: Corrected universal 32-bit mixing routine X-Git-Tag: v1.0.3~196 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6235dab516616816ee3c3abbb14b6288900b520f;p=alsa-lib.git Corrected universal 32-bit mixing routine --- diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index 3c5593ce..41c4b526 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -210,7 +210,7 @@ static void mix_areas2(unsigned int size, sample = -0x800000; else sample = old_sample; - *dst = sample; + *dst = sample << 8; } while (*sum != old_sample); ((char *)src) += src_step; ((char *)dst) += dst_step;