From 2af1485bf2f27e420828156928dbdff74941757d Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 22 Mar 2025 19:57:49 +0100 Subject: [PATCH] no clue --- src/rds95.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rds95.c b/src/rds95.c index 712600a..80758f1 100644 --- a/src/rds95.c +++ b/src/rds95.c @@ -98,6 +98,10 @@ int main(int argc, char **argv) { format.channels = 1; format.rate = RDS_SAMPLE_RATE; + buffer.prebuf = 0; + buffer.tlength = 12228; + buffer.maxlength = 12228; + rds1_device = pa_simple_new( NULL, "rds95", @@ -126,7 +130,7 @@ int main(int argc, char **argv) { NULL ); if(rds2_device == NULL) { - fprintf(stderr, "Error: cannot open sound device.\n"); + fprintf(stderr, "Error: cannot open RDS2 sound device.\n"); goto exit; } #endif