Changeset 5533:42f48072307c in roaraudio for roarclients/roarcat.c


Ignore:
Timestamp:
06/12/12 14:39:40 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Fixed usage of -R/-B/-C/-E as well as --aiprofile in roarclients (Closes: #176)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcat.c

    r5457 r5533  
    3737        "  --bits  -B  BITS      - Set bits per sample\n" 
    3838        "  --chans -C  CHANNELS  - Set number of channels\n" 
    39         "  --codec     CODEC     - Set the codec\n" 
     39        "  --codec -E  CODEC     - Set the codec\n" 
     40        "  --aiprofile PROFILE   - Set audio profile\n" 
    4041        "  --wave                - Use Wave Audio (PCM) as input\n" 
    4142        "  --midi                - Use MIDI Audio as input\n" 
     
    7071 int file_opened = 0; 
    7172 
     73 // TODO: make use of roar_stdin. 
    7274 if ( roar_vio_open_fh(&file, ROAR_STDIN) == -1 ) 
    7375  return 1; 
     
    98100    return 1; 
    99101   } 
     102  } else if ( !strcmp(k, "--aiprofile") ) { 
     103   if ( roar_profile2info(&info, argv[++i]) == -1 ) { 
     104    fprintf(stderr, "Error: Can not load audio profile: %s: %s\n", argv[i], roar_error2str(roar_error)); 
     105    return 1; 
     106   } 
    100107 
    101108  } else if ( !strcmp(k, "--wave") ) { 
Note: See TracChangeset for help on using the changeset viewer.