diff options
author | Jon Nordby <jononor@gmail.com> | 2025-08-08 23:29:05 +0200 |
---|---|---|
committer | Jon Nordby <jononor@gmail.com> | 2025-08-08 23:29:05 +0200 |
commit | 3d3727b275ac7b40c31f0791b8a77def77021fb9 (patch) | |
tree | 31532443e977951b29af41813e2957b5e829b3e3 /bindings | |
parent | e7ef91cde0e25e2b4aedb7a19c7de53c6a1b18d3 (diff) |
pdm: Attempt at more efficient DC rejecter
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/sim_cic3_pdm.cc | 2 | ||||
-rw-r--r-- | bindings/test_galearn_pdm.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bindings/sim_cic3_pdm.cc b/bindings/sim_cic3_pdm.cc index 982581f..4b8ae64 100644 --- a/bindings/sim_cic3_pdm.cc +++ b/bindings/sim_cic3_pdm.cc @@ -15,7 +15,7 @@ pdm2pcm_cic3(const uint8_t *pdm, int64_t pdm_length, int16_t *pcm, int32_t pcm_l Vcic3_pdm *top = new Vcic3_pdm{cp}; - top->hpf_alpha = hpf_alpha; + //top->hpf_alpha = hpf_alpha; top->scale_shift = scale_shift; // Start clock off diff --git a/bindings/test_galearn_pdm.py b/bindings/test_galearn_pdm.py index 6274868..0834f8e 100644 --- a/bindings/test_galearn_pdm.py +++ b/bindings/test_galearn_pdm.py @@ -137,7 +137,7 @@ def test_dc(): out = numpy.zeros(shape=len(pdm_input)//DECIMATION, dtype=numpy.int16) # Process using filter - n_samples = galearn_pdm.process(pdm_input, out, 128, 5) + n_samples = galearn_pdm.process(pdm_input, out, 50, 0) out = out / (2**12) # Compensate for delay through filter |