diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-15 19:59:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-15 19:59:56 +0100 |
commit | 803b0c227f423240f9114107ca4786bdd539a459 (patch) | |
tree | 9b03f6db665bd448cce37022defc46ef6738c0bf | |
parent | 08a91f1fa3a5888c2a97943c9a36384e30f21db1 (diff) |
don't try to set buffer size, since it is not really necessary
-rw-r--r-- | dbverify.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; |