0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

wanted good, but had to use malloc

This commit is contained in:
2025-06-21 14:09:25 +02:00
parent d0b817026f
commit 5a03d06508

View File

@@ -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;
}