Changeset 1923:cd3072dcde5f in roaraudio


Ignore:
Timestamp:
05/29/09 15:14:30 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added option --light-channels

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/light.h

    r1821 r1923  
    2828#include <roaraudio.h> 
    2929 
     30#define LIGHT_CHANNELS_DEFAULT 512 /* one DMX Universe */ 
     31 
    3032struct { 
    3133 unsigned int    channels; 
  • roard/roard.c

    r1920 r1923  
    5353       ); 
    5454 
    55  printf("\nDriver Options:\n\n"); 
     55 printf("\nDriver Options: (obsolete, do not use, Use Ouput Options)\n\n"); 
    5656 printf(" -d  --driver DRV      - Set the driver (default: %s)\n", ROAR_DRIVER_DEFAULT); 
    5757 printf(" -D  --device DEV      - Set the device\n"); 
     
    7676 printf("\nCodec Filter Options:\n\n"); 
    7777 printf(" --list-cf             - List all codec filter\n" 
     78       ); 
     79 
     80 printf("\nMIDI Options:\n\n"); 
     81 
     82 printf("\nLight Control Options:\n\n"); 
     83 printf(" --light-channels NUM  - Sets the number of channels for Light control (default: %i)\n", 
     84                                  LIGHT_CHANNELS_DEFAULT 
    7885       ); 
    7986 
     
    360367 int    o_prim    = 0; 
    361368 int    o_count   = 0; 
    362  int    light_channels = 512; 
     369 int    light_channels = LIGHT_CHANNELS_DEFAULT; 
    363370 char * sock_grp  = ROAR_DEFAULT_SOCKGRP; 
    364371 char * sock_user = NULL; 
     
    562569   s_drv = "cf"; 
    563570   s_prim = 0; 
     571 
     572  } else if ( strcmp(k, "--light-channels") == 0 ) { 
     573   light_channels = atoi(argv[++i]); 
    564574 
    565575  } else if ( strcmp(k, "-p") == 0 || strcmp(k, "--port") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.