From 1c1ef6ca4d868a7c8e6c2c1bfd87f2d7dd471302 Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 17:49:09 +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 15ae17e..73d8a13 100644 --- a/src/beep.c +++ b/src/beep.c @@ -188,7 +188,7 @@ int beep(double freq_hz, double duration_sec) unsigned int i,j; snd_pcm_sframes_t frames; - unsigned int up_count = (int)(SAMPLE_RATE * duration_sec); + unsigned int up_count = (unsigned int)(SAMPLE_RATE*1.0 * duration_sec); p1 = p2 = f1 = f2 = 0.02;//SAMPLE_RATE/freq_hz;//0.02;