summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-15 19:59:56 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-15 19:59:56 +0100
commit803b0c227f423240f9114107ca4786bdd539a459 (patch)
tree9b03f6db665bd448cce37022defc46ef6738c0bf
parent08a91f1fa3a5888c2a97943c9a36384e30f21db1 (diff)
don't try to set buffer size, since it is not really necessary
-rw-r--r--dbverify.c7
1 files changed, 0 insertions, 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;