OSDN Git Service

Removed useless check
authorJaroslav Kysela <perex@perex.cz>
Thu, 1 Nov 2001 07:23:28 +0000 (07:23 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 1 Nov 2001 07:23:28 +0000 (07:23 +0000)
test/pcm.c

index 997b392..2851fec 100644 (file)
@@ -400,8 +400,6 @@ static int direct_loop(snd_pcm_t *handle,
                        printf("MMAP begin error: %s\n", snd_strerror(err));
                        exit(EXIT_FAILURE);
                }
-               if (frames > period_size)
-                       frames = period_size;
                generate_sine(my_areas, offset, frames, &phase);
                err = snd_pcm_mmap_commit(handle, offset, frames);
                if (err < 0) {