Changeset 5950:7fe8f5df7a83 in roaraudio for roarclients/roarbidir.c


Ignore:
Timestamp:
10/20/13 13:52:15 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

code cleanup and again a patch for checking commandlion parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarbidir.c

    r5823 r5950  
    6969 
    7070  if ( strcmp(k, "--server") == 0 ) { 
     71   ROAR_CKHAVEARGS(1); 
    7172   server = argv[++i]; 
    7273  } else if ( strcmp(k, "--rate") == 0 || strcmp(k, "-R") == 0 ) { 
     74   ROAR_CKHAVEARGS(1); 
    7375   info.rate = roar_str2rate(argv[++i]); 
    7476  } else if ( strcmp(k, "--bits") == 0 || strcmp(k, "-B") == 0 ) { 
     77   ROAR_CKHAVEARGS(1); 
    7578   info.bits = roar_str2bits(argv[++i]); 
    7679  } else if ( strcmp(k, "--channels") == 0 || strcmp(k, "--chans") == 0 || strcmp(k, "-C") == 0 ) { 
     80   ROAR_CKHAVEARGS(1); 
    7781   info.channels = roar_str2channels(argv[++i]); 
    7882  } else if ( strcmp(k, "--codec") == 0 || strcmp(k, "-E") == 0 ) { 
     83   ROAR_CKHAVEARGS(1); 
    7984   info.codec = roar_str2codec(argv[++i]); 
    8085  } else if ( !strcmp(k, "--aiprofile") ) { 
     86   ROAR_CKHAVEARGS(1); 
    8187   if ( roar_profile2info(&info, argv[++i]) == -1 ) { 
    8288    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.