From 5bd1718bb2be34a530dc1ce10a9e5c535e38fc40 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 21 Jul 2021 19:41:42 +0800 Subject: [PATCH] try non-static const to make stretch build happy? --- adaptive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adaptive.c b/adaptive.c index 39af6a8..f8e1306 100644 --- a/adaptive.c +++ b/adaptive.c @@ -46,7 +46,7 @@ static float adaptive_gain_down_db; // every subblock boundary is also a window boundary. -static const unsigned adaptive_subblocks_per_block = 20; // subblocks per block +const unsigned adaptive_subblocks_per_block = 20; // subblocks per block static unsigned adaptive_subblocks_remaining; // subblocks remaining in the current block // Duty cycle is expressed as N/D @@ -59,7 +59,7 @@ static unsigned adaptive_subblocks_remaining; // subblocks remainin // subblock, modulo D, and marking the subblock as active each time the counter rolls over. static unsigned adaptive_subblock_dutycycle_N; // subblock duty cycle numerator N -static const unsigned adaptive_subblock_dutycycle_D = adaptive_subblocks_per_block; // subblock duty cycle denominator D +const unsigned adaptive_subblock_dutycycle_D = adaptive_subblocks_per_block; // subblock duty cycle denominator D static unsigned adaptive_subblock_dutycycle_counter; // subblock duty cycle counter (modulo D) static bool adaptive_subblock_active; // is the current subblock active i.e. samples should be processed, not skipped?