Changeset 2487:10020ba41793 in roaraudio for roard/roard.c


Ignore:
Timestamp:
08/24/09 00:16:38 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support to disable CB completly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2486 r2487  
    931931 
    932932  } else if ( strcmp(k, "--midi-no-console") == 0 ) { 
     933#ifndef ROAR_WITHOUT_DCOMP_CB 
    933934   midi_config.init_cb = 0; 
     935#else 
     936   // no warning here as this is the disable option 
     937#endif 
    934938  } else if ( strcmp(k, "--midi-console-enable") == 0 ) { 
     939#ifndef ROAR_WITHOUT_DCOMP_CB 
    935940   midi_config.init_cb = 1; 
     941#else 
     942   ROAR_ERR("main(*): No support for MIDI subsystem part CB compiled in"); 
     943#endif 
    936944  } else if ( strcmp(k, "--midi-console") == 0 ) { 
     945#ifndef ROAR_WITHOUT_DCOMP_CB 
    937946   midi_config.console_dev = argv[++i]; 
    938947   midi_config.init_cb = 1; 
     948#else 
     949   ROAR_ERR("main(*): No support for MIDI subsystem part CB compiled in"); 
     950#endif 
    939951 
    940952  } else if ( strcmp(k, "--ssynth-enable") == 0 ) { 
     
    13371349 clients_free(); 
    13381350 ssynth_free(); 
     1351#ifndef ROAR_WITHOUT_DCOMP_CB 
    13391352 midi_cb_stop(); // stop console beep 
     1353#endif 
    13401354 midi_free(); 
    13411355 light_free(); 
Note: See TracChangeset for help on using the changeset viewer.