From a5b7aed310b0e48beca56c8f465f12768dfbe12f Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 17:52:12 +0200 Subject: [PATCH] wip --- src/beep.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/beep.c b/src/beep.c index fd35f32..b2b9817 100644 --- a/src/beep.c +++ b/src/beep.c @@ -184,6 +184,11 @@ snd_output_t *output = NULL; int beep(double freq_hz, double duration_sec) { +if (freq_hz <= 0.) +{ + msleep(duration_sec*1000.); +return 0; +} double p1,p2,f1,f2; unsigned int i,j; snd_pcm_sframes_t frames;