Changeset 1808:073dbd2723d0 in roaraudio for roarclients/roarcat.c


Ignore:
Timestamp:
05/22/09 18:05:08 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --wave, --midi, --light and --thru (only roarmon) to roarcat/roarmon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcat.c

    r1635 r1808  
    3737        "  --chans -C  CHANNELS  - Set number of channels\n" 
    3838        "  --codec     CODEC     - Set the codec\n" 
     39        "  --wave                - Use Wave Audio (PCM) as input\n" 
     40        "  --midi                - Use MIDI Audio as input\n" 
     41        "  --light               - Use light control input\n" 
    3942        "  --help                - Show this help\n" 
    4043       ); 
     
    4750 int    channels = ROAR_CHANNELS_DEFAULT; 
    4851 int    codec    = ROAR_CODEC_DEFAULT; 
     52 int    dir      = ROAR_DIR_PLAY; 
    4953 char * server   = NULL; 
    5054 char * k; 
     
    7478  } else if ( !strcmp(k, "--codec") ) { 
    7579   codec = roar_str2codec(argv[++i]); 
     80 
     81  } else if ( !strcmp(k, "--wave") ) { 
     82   dir   = ROAR_DIR_PLAY; 
     83  } else if ( !strcmp(k, "--midi") ) { 
     84   dir   = ROAR_DIR_MIDI_IN; 
     85  } else if ( !strcmp(k, "--light") ) { 
     86   dir   = ROAR_DIR_LIGHT_IN; 
     87 
    7688  } else if ( !strcmp(k, "--help") || !strcmp(k, "-h") ) { 
    7789   usage(); 
     
    89101 } 
    90102 
    91  if ( (fh = roar_simple_play(rate, channels, bits, codec, server, name)) == -1 ) { 
     103 if ( (fh = roar_simple_stream(rate, channels, bits, codec, server, dir, name)) == -1 ) { 
    92104  fprintf(stderr, "Error: can not start playback\n"); 
    93105  return 1; 
Note: See TracChangeset for help on using the changeset viewer.