0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 12:53:53 +01:00

don't use malloc in the rds modulator

This commit is contained in:
2025-03-12 15:39:09 +01:00
parent c65a69a328
commit eeace56821
7 changed files with 31 additions and 58 deletions

View File

@@ -206,7 +206,7 @@ int main(int argc, char **argv) {
int pulse_error;
float mpx_buffer[NUM_MPX_FRAMES];
static float mpx_buffer[NUM_MPX_FRAMES];
while(!stop_rds) {
for (size_t i = 0; i < NUM_MPX_FRAMES; i++) {
@@ -227,7 +227,6 @@ exit:
}
pthread_attr_destroy(&attr);
exit_rds_encoder();
pa_simple_free(device);
return 0;