summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-15 19:59:58 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-15 19:59:58 +0100
commit59209710e56c47e141c39708408384125afe8e43 (patch)
tree86555529ecfdc69870023f5eda125be43f76e6ce
parent803b0c227f423240f9114107ca4786bdd539a459 (diff)
don't try to set buffer size, since it is not really necessary
-rw-r--r--dbverify.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/dbverify.c b/dbverify.c
index cb20956..7403de2 100644
--- a/dbverify.c
+++ b/dbverify.c
@@ -314,11 +314,14 @@ int main(int argc, char *argv[]) {
goto finish;
}
+ printf("Mixer set, sleeping 0.5s\n");
+ usleep(500000ULL);
+
if (play_pcm(pcm, signal1, rate) < 0)
goto finish;
- printf("Sleeping 1s...\n");
- sleep(1);
+ printf("Sleeping 0.5s...\n");
+ usleep(500000ULL);
printf("Playing 1s of audio at amplitude %0.4f, mixer set to %li (%0.2f dB).\n", amplitude*attenuation, step2, step2_dB);
@@ -327,11 +330,14 @@ int main(int argc, char *argv[]) {
goto finish;
}
+ printf("Mixer set, sleeping 0.5s\n");
+ usleep(500000ULL);
+
if (play_pcm(pcm, signal2, rate) < 0)
goto finish;
- printf("Sleeping 1s...\n");
- sleep(1);
+ printf("Sleeping 0.5s...\n");
+ usleep(500000ULL);
printf("Looping. Press C-c to quit.\n");
}