From 5f4a945d5314454ee285a2577d9589b9a62d8a30 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 1 Mar 2025 21:11:00 +0100 Subject: [PATCH] adjust compressor --- README.md | 5 ++++- src/fm95.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2bc50f4..dde8820 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,7 @@ cd build cmake .. make ``` -Done! \ No newline at end of file +Done! + +# CPU Usage? +Should run completly fine on a pi 5, right now with the preemp, lpf, compressor on a pi 3b, its 35-40% cpu usage, get rid of compressor and it goes to 20% \ No newline at end of file diff --git a/src/fm95.c b/src/fm95.c index 346c8f3..cbac14c 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -375,7 +375,7 @@ int main(int argc, char **argv) { init_lpf(&lpf_r, LPF_CUTOFF, 1.25f, SAMPLE_RATE); StereoCompressor comp; - init_compressor_stereo(&comp, -2.0f, 15.0f, 2.0f, 0.0f, 0.015f, 0.25f, 0.01f, SAMPLE_RATE); + init_compressor_stereo(&comp, -3.0f, 12.5f, 8.0f, 0.0f, 0.02f, 0.4f, 0.015f, SAMPLE_RATE); // #endregion signal(SIGINT, stop);