0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 12:53:53 +01:00
This commit is contained in:
2025-03-14 17:40:41 +01:00
parent 8ac4c4ef89
commit 27aef3b700
2 changed files with 5 additions and 5 deletions

View File

@@ -429,7 +429,9 @@ void init_rds_encoder(struct rds_params_t rds_params) {
set_rds_ct(1); set_rds_ct(1);
set_rds_ms(1); set_rds_ms(1);
set_rds_di(DI_STEREO | DI_DPTY); set_rds_di(DI_STEREO | DI_DPTY);
set_rds_grpseq((unsigned char*)"00012222FFR"); set_rds_grpseq(rds_params.grp_sqc);
set_rds_udg1(rds_params.udg1);
set_rds_udg1(rds_params.udg2);
init_rtplus(GROUP_11A); init_rtplus(GROUP_11A);

View File

@@ -67,7 +67,8 @@ int main(int argc, char **argv) {
.rt1 = "", .rt1 = "",
.pi = 0x305F, .pi = 0x305F,
.ecc = 0xE2, .ecc = 0xE2,
.lps = "radio95 - Radio Nowotomyskie" .lps = "radio95 - Radio Nowotomyskie",
.grp_sqc = "00012222FFR"
}; };
/* PASIMPLE */ /* PASIMPLE */
pa_simple *device; pa_simple *device;
@@ -184,11 +185,9 @@ int main(int argc, char **argv) {
goto exit; goto exit;
} }
/* Initialize the control pipe reader */
if (control_pipe[0]) { if (control_pipe[0]) {
if (open_control_pipe(control_pipe) == 0) { if (open_control_pipe(control_pipe) == 0) {
fprintf(stderr, "Reading control commands on %s.\n", control_pipe); fprintf(stderr, "Reading control commands on %s.\n", control_pipe);
/* Create control pipe polling worker */
int r; int r;
r = pthread_create(&control_pipe_thread, &attr, control_pipe_worker, NULL); r = pthread_create(&control_pipe_thread, &attr, control_pipe_worker, NULL);
if (r < 0) { if (r < 0) {
@@ -221,7 +220,6 @@ int main(int argc, char **argv) {
exit: exit:
if (control_pipe[0]) { if (control_pipe[0]) {
/* shut down threads */
fprintf(stderr, "Waiting for pipe thread to shut down.\n"); fprintf(stderr, "Waiting for pipe thread to shut down.\n");
pthread_join(control_pipe_thread, NULL); pthread_join(control_pipe_thread, NULL);
} }