Changeset 570:30d91a9ad1be in roaraudio


Ignore:
Timestamp:
08/19/08 02:15:38 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --codec and fixed error text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarmon.c

    r233 r570  
    1414        "  --bits   BITS      - Set bits per sample\n" 
    1515        "  --chans  CHANNELS  - Set number of channels\n" 
     16        "  --codec  CODEC     - Set the codec\n" 
    1617        "  --help             - Show this help\n" 
    1718       ); 
     
    4142  } else if ( strcmp(k, "--channels") == 0 ) { 
    4243   channels = atoi(argv[++i]); 
     44  } else if ( strcmp(k, "--codec") == 0 ) { 
     45   codec = roar_str2codec(argv[++i]); 
    4346  } else if ( strcmp(k, "--help") == 0 ) { 
    4447   usage(); 
     
    5255 
    5356 if ( (fh = roar_simple_monitor(rate, channels, bits, codec, server, "roarmon")) == -1 ) { 
    54   fprintf(stderr, "Error: can not start playback\n"); 
     57  fprintf(stderr, "Error: can not start monetoring\n"); 
    5558  return 1; 
    5659 } 
Note: See TracChangeset for help on using the changeset viewer.