Changeset 5950:7fe8f5df7a83 in roaraudio for roarclients/roarcatplay.c
- Timestamp:
- 10/20/13 13:52:15 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarcatplay.c
r5949 r5950 64 64 65 65 if ( strcmp(k, "--server") == 0 || strcmp(k, "-s") == 0 ) { 66 ROAR_CKHAVEARGS(1); 66 67 server = argv[++i]; 67 68 } else if ( strcmp(k, "--simple") == 0 ) { … … 70 71 verbose++; 71 72 } else if ( strcmp(k, "-n") == 0 ) { 73 ROAR_CKHAVEARGS(1); 74 i++; 72 75 roar_debug_option_obsolete(argv[0], "-n", NULL, "Will ignore it for now."); 73 76 } else if ( !strcmp(k, "--rate") || !strcmp(k, "-R") ) { 77 ROAR_CKHAVEARGS(1); 74 78 info.rate = roar_str2rate(argv[++i]); 75 79 auinfo_changed = 1; 76 80 } else if ( !strcmp(k, "--bits") || !strcmp(k, "-B") ) { 81 ROAR_CKHAVEARGS(1); 77 82 info.bits = roar_str2bits(argv[++i]); 78 83 auinfo_changed = 1; 79 84 } else if ( !strcmp(k, "--channels") || !strcmp(k, "--chans") || !strcmp(k, "-C") ) { 85 ROAR_CKHAVEARGS(1); 80 86 info.channels = roar_str2channels(argv[++i]); 81 87 auinfo_changed = 1; 82 88 } else if ( !strcmp(k, "--codec") || !strcmp(k, "-E") ) { 89 ROAR_CKHAVEARGS(1); 83 90 info.codec = roar_str2codec(argv[++i]); 84 91 auinfo_changed = 1; 85 92 } else if ( !strcmp(k, "--aiprofile") ) { 93 ROAR_CKHAVEARGS(1); 86 94 if ( roar_profile2info(&info, argv[++i]) == -1 ) { 87 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.