Changeset 5950:7fe8f5df7a83 in roaraudio for roarclients/roarradio.c
- Timestamp:
- 10/20/13 13:52:15 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarradio.c
r5823 r5950 76 76 77 77 if ( strcmp(k, "--server") == 0 ) { 78 ROAR_CKHAVEARGS(1); 78 79 server = argv[++i]; 79 80 } else if ( strcmp(k, "--rate") == 0 || strcmp(k, "-R") == 0 ) { 81 ROAR_CKHAVEARGS(1); 80 82 info.rate = roar_str2rate(argv[++i]); 81 83 } else if ( strcmp(k, "--bits") == 0 || strcmp(k, "-B") == 0 ) { 84 ROAR_CKHAVEARGS(1); 82 85 info.bits = roar_str2bits(argv[++i]); 83 86 } else if ( strcmp(k, "--channels") == 0 || strcmp(k, "--chans") == 0 || strcmp(k, "-C") == 0 ) { 87 ROAR_CKHAVEARGS(1); 84 88 info.channels = roar_str2channels(argv[++i]); 85 89 } else if ( strcmp(k, "--codec") == 0 || strcmp(k, "-E") == 0 ) { 90 ROAR_CKHAVEARGS(1); 86 91 info.codec = roar_str2codec(argv[++i]); 87 92 } else if ( !strcmp(k, "--aiprofile") ) { 93 ROAR_CKHAVEARGS(1); 88 94 if ( roar_profile2info(&info, argv[++i]) == -1 ) { 89 95 fprintf(stderr, "Error: Can not load audio profile: %s: %s\n", argv[i], roar_error2str(roar_error));
Note: See TracChangeset
for help on using the changeset viewer.