]> git.alsa-project.org Git - alsa-lib.git/commitdiff
remove broken *_step initialization (caused by previous Fedora 4 patch)
authorJaroslav Kysela <perex@perex.cz>
Tue, 10 May 2005 07:05:47 +0000 (07:05 +0000)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 May 2005 07:05:47 +0000 (07:05 +0000)
Thanks to Abramo for notice.

src/pcm/pcm_dmix_generic.c

index 2bb39686e9cfe2907b875521c800df975582c629..f8c023e593033b6ad50c34fc7662f406b5e0117b 100644 (file)
@@ -53,9 +53,6 @@ static void mix_areas1(unsigned int size,
                       size_t src_step, size_t sum_step)
 {
        register signed int sample, old_sample;
-       src_step /= sizeof(*src);
-       dst_step /= sizeof(*dst);
-       sum_step /= sizeof(*sum);
 
        for (;;) {
                sample = *src;
@@ -87,9 +84,6 @@ static void mix_areas2(unsigned int size,
                       size_t src_step, size_t sum_step)
 {
        register signed int sample, old_sample;
-       src_step /= sizeof(*src);
-       dst_step /= sizeof(*dst);
-       sum_step /= sizeof(*sum);
 
        for (;;) {
                sample = *src / 256;