From 9dd1055495d96b629be142e8e77331e97caf2e3c Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 17:00:43 +0200 Subject: [PATCH] wip --- src/beep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beep.c b/src/beep.c index 7d5f66f..b9950c4 100644 --- a/src/beep.c +++ b/src/beep.c @@ -216,7 +216,7 @@ int beep(double freq_hz, double duration_sec) unsigned int i,j; snd_pcm_sframes_t frames; - int up_count = SAMPLE_RATE * msecs / 1000; + int up_count = (int)(SAMPLE_RATE * duration_sec); f1 = 0.02;