From a3ea4b90b4a1391845f30368fc57b26b6d85746a Mon Sep 17 00:00:00 2001 From: TT Date: Thu, 17 Oct 2019 23:48:37 +0900 Subject: [PATCH] wip --- dsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp.c b/dsp.c index 7732756..854e70d 100644 --- a/dsp.c +++ b/dsp.c @@ -36,14 +36,14 @@ dsp_process(int16_t *capture, size_t length) { uint32_t *p = (uint32_t*)capture; uint32_t len = length / 2; - uint32_t i; + uint32_t i, j; int32_t samp_s = 0; int32_t samp_c = 0; int32_t ref_s = 0; int32_t ref_c = 0; // quadrature steps for if=12kHz on fs=48kHz - for (i = 0; i < len;) { + for (i = 0, j = 0; i < len && j < 12; j++) { uint32_t sr; int16_t ref, smp;