Changeset 1507:ff0c9920a154 in roaraudio for roarclients/roarmon.c


Ignore:
Timestamp:
04/04/09 11:51:45 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed bug reported by Ionic to add short options as stated in the manpage and added esdfilt compatible options to roarfilt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarmon.c

    r1195 r1507  
    3232 printf("\nOptions:\n\n"); 
    3333 
    34  printf("  --server SERVER    - Set server hostname\n" 
    35         "  --rate  RATE      - Set sample rate\n" 
    36         "  --bits  BITS      - Set bits per sample\n" 
    37         "  --chans CHANNELS  - Set number of channels\n" 
    38         "  --codec  CODEC     - Set the codec\n" 
    39         "  --help             - Show this help\n" 
     34 printf("  --server   SERVER    - Set server hostname\n" 
     35        "  --rate  -R RATE      - Set sample rate\n" 
     36        "  --bits  -B BITS      - Set bits per sample\n" 
     37        "  --chans -C CHANNELS  - Set number of channels\n" 
     38        "  --codec    CODEC     - Set the codec\n" 
     39        "  --help               - Show this help\n" 
    4040       ); 
    4141 
     
    6161  if ( !strcmp(k, "--server") || !strcmp(k, "-s") ) { 
    6262   server = argv[++i]; 
    63   } else if ( !strcmp(k, "--rate") || !strcmp(k, "-r") ) { 
     63  } else if ( !strcmp(k, "--rate") || !strcmp(k, "-r") || !strcmp(k, "-R") ) { 
    6464   rate = atoi(argv[++i]); 
    65   } else if ( !strcmp(k, "--bits") ) { 
     65  } else if ( !strcmp(k, "--bits") || !strcmp(k, "-B") ) { 
    6666   bits = atoi(argv[++i]); 
    6767  } else if ( !strcmp(k, "-b") ) { 
    6868   bits = 8; 
    69   } else if ( !strcmp(k, "--channels") ) { 
     69  } else if ( !strcmp(k, "--channels") || !strcmp(k, "--chans") || !strcmp(k, "-C") ) { 
    7070   channels = atoi(argv[++i]); 
    7171  } else if ( !strcmp(k, "-m") ) { 
Note: See TracChangeset for help on using the changeset viewer.