From 803b0c227f423240f9114107ca4786bdd539a459 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Feb 2010 19:59:56 +0100 Subject: don't try to set buffer size, since it is not really necessary --- dbverify.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dbverify.c b/dbverify.c index e6d9dfe..cb20956 100644 --- a/dbverify.c +++ b/dbverify.c @@ -29,7 +29,6 @@ static snd_pcm_t *open_pcm(const char *name, unsigned *rate) { snd_pcm_t *d = NULL; int r; snd_pcm_hw_params_t *hw; - snd_pcm_uframes_t t; snd_output_t *output = NULL; int dir = 0; @@ -67,12 +66,6 @@ static snd_pcm_t *open_pcm(const char *name, unsigned *rate) { goto finish; } - t = *rate; - if ((r = snd_pcm_hw_params_set_buffer_size_near(d, hw, &t)) < 0) { - fprintf(stderr, "Cannot set buffer size: %s\n", snd_strerror(r)); - goto finish; - } - if ((r = snd_pcm_hw_params(d, hw)) < 0) { fprintf(stderr, "Cannot set parameters: %s\n", snd_strerror(r)); goto finish; -- cgit