From 02111ff581e5c8f5c3df2dc0cbae4a5f09ae158a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 3 Feb 2020 18:17:28 -0800 Subject: libs/sig: fix sig_ops_sin hz floor check off by one order of magnitude --- src/libs/sig/ops_sin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/sig/ops_sin.c b/src/libs/sig/ops_sin.c index 17f08cf..87f16da 100644 --- a/src/libs/sig/ops_sin.c +++ b/src/libs/sig/ops_sin.c @@ -45,7 +45,7 @@ static float ops_sin_output(void *context, unsigned ticks_ms) assert(ctxt->hz); hz = sig_output(ctxt->hz, ticks_ms); - if (hz < .0001f) + if (hz < .001f) return 0.f; ms_per_cycle = hz * 1000.f; -- cgit v1.2.3