From a9371e16d42ba18a4934c56a610383cd14fd178a Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 17:56:07 +0200 Subject: [PATCH] wip --- src/beep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/beep.c b/src/beep.c index 7eb2e6b..7549efd 100644 --- a/src/beep.c +++ b/src/beep.c @@ -182,9 +182,10 @@ snd_output_t *output = NULL; int beep(double freq_hz, double duration_sec) { -if (freq_hz <= 0.) +if (freq_hz <= 0.0) { msleep(duration_sec*1000.); +printf (" no tone "); return 0; } double p1,p2,f1,f2;