From: Jaroslav Kysela Date: Sat, 1 Mar 2003 20:18:50 +0000 (+0000) Subject: Reverted back generic code X-Git-Tag: v1.0.3~228 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b4399305250120d0619935f7ded4813150b09702;p=alsa-lib.git Reverted back generic code --- diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index d8b7488e..37f51eb6 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -641,8 +641,9 @@ static void mix_areas1(unsigned int size, while (size-- > 0) { sample = *src; + old_sample = *sum; if (*dst == 0) - sample -= *sum; + sample -= old_sample; *sum += sample; do { old_sample = *sum;