Changeset 2451:e6aedd121ada in roaraudio


Ignore:
Timestamp:
08/21/09 04:45:38 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

init/free ssynth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2444 r2451  
    103103        " --midi-console-enable - Enables the console based MIDI synth\n" 
    104104        " --midi-console DEV    - Set device for MIDI console\n" 
     105        " --ssynth-enable       - Enable simple software synth\n" 
     106        " --ssynth-disable      - Disable simple software synth\n" 
    105107       ); 
    106108 
     
    698700 } 
    699701 
     702 if ( ssynth_init_config() == -1 ) { 
     703  ROAR_ERR("Can not init ssynth config!"); 
     704  return 1; 
     705 } 
     706 
    700707#ifdef ROAR_SUPPORT_LISTEN 
    701708#ifdef ROAR_HAVE_GETUID 
     
    897904   midi_config.init_cb = 1; 
    898905 
     906  } else if ( strcmp(k, "--ssynth-enable") == 0 ) { 
     907   ssynth_conf.enable = 1; 
     908  } else if ( strcmp(k, "--ssynth-disable") == 0 ) { 
     909   ssynth_conf.enable = 0; 
     910 
    899911  } else if ( strcmp(k, "-p") == 0 || strcmp(k, "--port") == 0 ) { 
    900912   // This is only usefull in INET not UNIX mode. 
     
    10271039 if ( midi_init() == -1 ) { 
    10281040  ROAR_ERR("Can not initialize MIDI subsystem"); 
     1041 } 
     1042 
     1043 if ( ssynth_init() == -1 ) { 
     1044  ROAR_ERR("Can not initialize ssynth subsystem"); 
    10291045 } 
    10301046 
     
    12821298 streams_free(); 
    12831299 clients_free(); 
     1300 ssynth_free(); 
    12841301 midi_cb_stop(); // stop console beep 
    12851302 midi_free(); 
Note: See TracChangeset for help on using the changeset viewer.