Changeset 2494:353c82155185 in roaraudio
- Timestamp:
- 08/24/09 02:20:24 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r2490 r2494 111 111 ); 112 112 113 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 113 114 printf("\nLight Control Options:\n\n"); 114 115 printf(" --light-channels NUM - Sets the number of channels for Light control (default: %i)\n", 115 116 LIGHT_CHANNELS_DEFAULT 116 117 ); 118 #endif 117 119 118 120 printf("\nServer Options:\n\n"); … … 372 374 if ( !strcasecmp(v, "wave") || !strcasecmp(v, "waveform") ) { 373 375 dir = ROAR_DIR_OUTPUT; 376 #ifndef ROAR_WITHOUT_DCOMP_MIDI 374 377 } else if ( !strcasecmp(v, "midi") ) { 375 378 dir = ROAR_DIR_MIDI_OUT; 379 #endif 380 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 376 381 } else if ( !strcasecmp(v, "light") ) { 377 382 dir = ROAR_DIR_LIGHT_OUT; 383 #endif 384 #ifndef ROAR_WITHOUT_DCOMP_RAW 378 385 } else if ( !strcasecmp(v, "raw") ) { 379 386 dir = ROAR_DIR_RAW_OUT; 387 #endif 380 388 } else { 381 ROAR_ERR("add_output(*): unknown subsystem '%s'", k);389 ROAR_ERR("add_output(*): unknown/unsupported subsystem '%s'", k); 382 390 error++; 383 391 } … … 548 556 549 557 snprintf(attr, sizeof(attr), "(wave-rate=%i),(wave-channels=%i),(wave-bits=%i)," 550 "(light-channels=%i),(location=%s)", 558 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 559 "(light-channels=%i)," 560 #endif 561 "(location=%s)", 551 562 g_sa->rate, g_sa->channels, g_sa->bits, 563 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 552 564 g_light_state.channels, 565 #endif 553 566 location 554 567 ); … … 638 651 int o_prim = 0; 639 652 int o_count = 0; 653 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 640 654 int light_channels = LIGHT_CHANNELS_DEFAULT; 655 #endif 641 656 char * sock_grp = ROAR_DEFAULT_SOCKGRP; 642 657 char * sock_user = NULL; … … 932 947 933 948 } else if ( strcmp(k, "--light-channels") == 0 ) { 949 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 934 950 light_channels = atoi(argv[++i]); 951 #else 952 ROAR_WARN("main(*): no light subsystem compiled in"); 953 #endif 935 954 936 955 } else if ( strcmp(k, "--midi-no-console") == 0 ) { … … 1107 1126 #endif 1108 1127 1128 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 1109 1129 if ( light_init(light_channels) == -1 ) { 1110 1130 ROAR_ERR("Can not initialize light control subsystem"); 1111 1131 } 1132 #endif 1112 1133 1113 1134 #ifdef ROAR_SUPPORT_LISTEN … … 1369 1390 #endif 1370 1391 midi_free(); 1392 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 1371 1393 light_free(); 1394 #endif 1372 1395 1373 1396 #ifdef SUPPORT_PIDFILE
Note: See TracChangeset
for help on using the changeset viewer.