Changeset 5533:42f48072307c in roaraudio for roarclients/roarphone.c
- Timestamp:
- 06/12/12 14:39:40 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarphone.c
r5381 r5533 114 114 115 115 printf("\nAudio Options:\n\n"); 116 printf(" --rate RATE - Set sample rate\n" 117 " --bits BITS - Set bits per sample\n" 118 " --chans CHANNELS - Set number of channels\n" 116 printf(" --rate -R RATE - Set sample rate\n" 117 " --bits -B BITS - Set bits per sample\n" 118 " --chans -C CHANNELS - Set number of channels\n" 119 " --aiprofile PROFILE - Set audio profile\n" 119 120 ); 120 121 … … 129 130 130 131 printf("\nCodec Options:\n\n"); 131 printf(" --codec 132 printf(" --codec -E CODEC - Set the codec\n" 132 133 " --transcode - Use local transcodeing\n" 133 134 ); … … 436 437 } else if ( strcmp(k, "--io-flush") == 0 ) { 437 438 g_conf.ioflush_interval = atoi(argv[++i]); 438 } else if ( strcmp(k, "--rate") == 0 ) {439 } else if ( strcmp(k, "--rate") == 0 || strcmp(k, "-R") == 0 ) { 439 440 info.rate = roar_str2rate(argv[++i]); 440 } else if ( strcmp(k, "--bits") == 0 ) {441 } else if ( strcmp(k, "--bits") == 0 || strcmp(k, "-B") == 0 ) { 441 442 info.bits = roar_str2bits(argv[++i]); 442 } else if ( strcmp(k, "--channels") == 0 || strcmp(k, "--chans") == 0 ) {443 } else if ( strcmp(k, "--channels") == 0 || strcmp(k, "--chans") == 0 || strcmp(k, "-C") == 0 ) { 443 444 info.channels = roar_str2channels(argv[++i]); 445 } else if ( !strcmp(k, "--aiprofile") ) { 446 if ( roar_profile2info(&info, argv[++i]) == -1 ) { 447 fprintf(stderr, "Error: Can not load audio profile: %s: %s\n", argv[i], roar_error2str(roar_error)); 448 return 1; 449 } 444 450 445 451 } else if ( strcmp(k, "--afi-downmix") == 0 ) { … … 459 465 g_conf.filter.in.speex_prep_vad = 1; 460 466 461 } else if ( strcmp(k, "--codec") == 0 ) {467 } else if ( strcmp(k, "--codec") == 0 || strcmp(k, "-E") == 0 ) { 462 468 info.codec = roar_str2codec(argv[++i]); 463 469
Note: See TracChangeset
for help on using the changeset viewer.