From b227bd5d9063a152ab81adf1ec58ed1f95fbc093 Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 17:23:47 +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 3c431bc..1e6e600 100644 --- a/src/beep.c +++ b/src/beep.c @@ -191,7 +191,7 @@ int beep(double freq_hz, double duration_sec) int up_count = (int)(SAMPLE_RATE * duration_sec); - p1 = p2 = f1 = f2 = 0.02; + p1 = p2 = f1 = f2 = SAMPLE_RATE/freq;//0.02; for (i = 0; i < up_count; ) { for (j = 0; j < FRAMES*2 ; j+=2) //for (j = 0; j < up_count*2; j+=2)