Changeset 2500:5e481907a8c0 in roaraudio for roard/roard.c


Ignore:
Timestamp:
08/24/09 02:55:13 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support to disable MIDI subsystem completly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2494 r2500  
    101101       ); 
    102102 
     103#ifndef ROAR_WITHOUT_DCOMP_MIDI 
    103104 printf("\nMIDI Options:\n\n"); 
    104105 printf(" --midi-no-console     - Disable console based MIDI synth\n" 
     
    110111#endif 
    111112       ); 
     113#endif 
    112114 
    113115#ifndef ROAR_WITHOUT_DCOMP_LIGHT 
     
    716718 } 
    717719 
     720#ifndef ROAR_WITHOUT_DCOMP_MIDI 
    718721 if ( midi_init_config() == -1 ) { 
    719722  ROAR_ERR("Can not init MIDI config!"); 
    720723  return 1; 
    721724 } 
     725#endif 
    722726 
    723727#ifndef ROAR_WITHOUT_DCOMP_SSYNTH 
     
    11161120 ROAR_DBG("Server config: rate=%i, bits=%i, chans=%i", sa.rate, sa.bits, sa.channels); 
    11171121 
     1122#ifndef ROAR_WITHOUT_DCOMP_MIDI 
    11181123 if ( midi_init() == -1 ) { 
    11191124  ROAR_ERR("Can not initialize MIDI subsystem"); 
    11201125 } 
     1126#endif 
    11211127 
    11221128#ifndef ROAR_WITHOUT_DCOMP_SSYNTH 
     
    13891395 midi_cb_stop(); // stop console beep 
    13901396#endif 
     1397#ifndef ROAR_WITHOUT_DCOMP_MIDI 
    13911398 midi_free(); 
     1399#endif 
    13921400#ifndef ROAR_WITHOUT_DCOMP_LIGHT 
    13931401 light_free(); 
Note: See TracChangeset for help on using the changeset viewer.