Changeset 2728:5d36ed1176f2 in roaraudio


Ignore:
Timestamp:
09/16/09 13:07:27 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --rds-* from TODO list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2725 r2728  
    127127 printf("\nRadio Date and Transmitter Control System Options:\n\n"); 
    128128 printf(" --rds-pi   PI         - Sets the RDS Programme Identification (PI)\n" 
    129 /* 
    130 // TODO: 
    131129        " --rds-ps   PS         - Sets the RDS Programme Service Name (PS)\n" 
    132130        " --rds-pty  PTY        - Sets the RDS Programme Type (PTY)\n" 
    133131        " --rds-tp              - Sets the RDS Traffic Programme (TP) flag\n" 
    134132        " --rds-ct              - Enables sending of RDS Clock Time (CT)\n" 
    135 */ 
    136133       ); 
    137134#endif 
     
    11531150   ROAR_WARN("main(*): no RDTCS subsystem compiled in"); 
    11541151#endif 
     1152  } else if ( strcmp(k, "--rds-ps") == 0 ) { 
     1153#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     1154   if ( rdtcs_rds_set_ps(argv[++i]) == -1 ) { 
     1155    ROAR_ERR("Can not set RDS PS to '%s' (longer than 8 chars?)", arvg[i]); 
     1156    return 1; 
     1157   } 
     1158#else 
     1159   ROAR_WARN("main(*): no RDTCS subsystem compiled in"); 
     1160#endif 
     1161  } else if ( strcmp(k, "--rds-pty") == 0 ) { 
     1162#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     1163   if ( rdtcs_rds_set_pty(argv[++i]) == -1 ) { 
     1164    ROAR_ERR("Can not set RDS PTY to '%s'", arvg[i]); 
     1165    return 1; 
     1166   } 
     1167#else 
     1168   ROAR_WARN("main(*): no RDTCS subsystem compiled in"); 
     1169#endif 
     1170  } else if ( strcmp(k, "--rds-tp") == 0 ) { 
     1171#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     1172   if ( rdtcs_rds_set_flag(RDTCS_RDS_FLAG_TP, 0) == -1 ) { 
     1173    ROAR_ERR("Can not set RDS TP flag"); 
     1174    return 1; 
     1175   } 
     1176#else 
     1177   ROAR_WARN("main(*): no RDTCS subsystem compiled in"); 
     1178#endif 
     1179  } else if ( strcmp(k, "--rds-ct") == 0 ) { 
     1180#ifndef ROAR_WITHOUT_DCOMP_RDTCS 
     1181   if ( rdtcs_rds_set_flag(RDTCS_RDS_FLAG_CT, 0) == -1 ) { 
     1182    ROAR_ERR("Can not set RDS CT flag"); 
     1183    return 1; 
     1184   } 
     1185#else 
     1186   ROAR_WARN("main(*): no RDTCS subsystem compiled in"); 
     1187#endif 
     1188 
    11551189 
    11561190  } else if ( strcmp(k, "--midi-no-console") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.