From 5a03d06508c3b0e0a4aecfdedacbc7fefb9f2857 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 21 Jun 2025 14:09:25 +0200 Subject: [PATCH] wanted good, but had to use malloc --- src/fm95.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fm95.c b/src/fm95.c index c9b83c7..acf42c2 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -369,7 +369,7 @@ int main(int argc, char **argv) { float audio_stereo_input[BUFFER_SIZE*2]; // Stereo - float rds_in[BUFFER_SIZE*rds_streams] = {0}; // multichannel + float *rds_in = malloc(sizeof(float) * BUFFER_SIZE * rds_streams); float mpx_in[BUFFER_SIZE] = {0}; float sca_in[BUFFER_SIZE] = {0}; @@ -491,5 +491,6 @@ int main(int argc, char **argv) { if(rds_on) free_PulseInputDevice(&rds_device); if(sca_on) free_PulseInputDevice(&sca_device); free_PulseOutputDevice(&output_device); + free(rds_in); return 0; }