Changeset 1924:4b8f87ffd0b0 in roaraudio for roard/roard.c


Ignore:
Timestamp:
05/29/09 19:07:41 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make midi subsystem a bit configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r1923 r1924  
    7979 
    8080 printf("\nMIDI Options:\n\n"); 
     81 printf(" --midi-no-console     - Disable console based MIDI synth\n" 
     82        " --midi-console DEV    - Set device for MIDI console\n" 
     83       ); 
    8184 
    8285 printf("\nLight Control Options:\n\n"); 
     
    424427 } 
    425428 
     429 if ( midi_init_config() == -1 ) { 
     430  ROAR_ERR("Can not init MIDI config!"); 
     431  return 1; 
     432 } 
    426433 
    427434#ifdef ROAR_SUPPORT_LISTEN 
     
    572579  } else if ( strcmp(k, "--light-channels") == 0 ) { 
    573580   light_channels = atoi(argv[++i]); 
     581 
     582  } else if ( strcmp(k, "--midi-no-console") == 0 ) { 
     583   midi_config.init_cb = 0; 
     584  } else if ( strcmp(k, "--midi-console") == 0 ) { 
     585   midi_config.console_dev = argv[++i]; 
    574586 
    575587  } else if ( strcmp(k, "-p") == 0 || strcmp(k, "--port") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.