From 104133eeb4cff907d9aedf4763659252b8c5786f Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 28 Mar 2025 08:41:51 +0100 Subject: [PATCH] core, make dc filter reacting faster (arm) --- pico/sound/mix_arm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/sound/mix_arm.S b/pico/sound/mix_arm.S index 64383c3a..486aa5b5 100644 --- a/pico/sound/mix_arm.S +++ b/pico/sound/mix_arm.S @@ -299,7 +299,7 @@ m16_32_rsm_end: @ in=int_sample (max 20 bit), y=filter memory, r8=tmp .macro DCfilt in y rsb r8, \y, \in, lsl #12 @ fixpoint 20.12 - add \y, \y, r8, asr #12 @ alpha = 1-1/4094 + add \y, \y, r8, asr #9 @ alpha = 1-1/512 sub \in, \in, \y, asr #12 .endm -- 2.39.5