Changeset 2489:266b1a6c9683 in roaraudio for roard/roard.c
- Timestamp:
- 08/24/09 00:34:37 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r2487 r2489 105 105 " --midi-console-enable - Enables the console based MIDI synth\n" 106 106 " --midi-console DEV - Set device for MIDI console\n" 107 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 107 108 " --ssynth-enable - Enable simple software synth\n" 108 109 " --ssynth-disable - Disable simple software synth\n" 110 #endif 109 111 ); 110 112 … … 704 706 } 705 707 708 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 706 709 if ( ssynth_init_config() == -1 ) { 707 710 ROAR_ERR("Can not init ssynth config!"); 708 711 return 1; 709 712 } 713 #endif 710 714 711 715 #ifdef ROAR_SUPPORT_LISTEN … … 951 955 952 956 } else if ( strcmp(k, "--ssynth-enable") == 0 ) { 957 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 953 958 ssynth_conf.enable = 1; 959 #else 960 ROAR_ERR("main(*): No support for ssynth compiled in"); 961 #endif 954 962 } else if ( strcmp(k, "--ssynth-disable") == 0 ) { 963 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 955 964 ssynth_conf.enable = 0; 965 #else 966 // we can safely ignore the disable 967 #endif 956 968 957 969 } else if ( strcmp(k, "-p") == 0 || strcmp(k, "--port") == 0 ) { … … 1089 1101 } 1090 1102 1103 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 1091 1104 if ( ssynth_init() == -1 ) { 1092 1105 ROAR_ERR("Can not initialize ssynth subsystem"); 1093 1106 } 1107 #endif 1094 1108 1095 1109 if ( light_init(light_channels) == -1 ) { … … 1348 1362 streams_free(); 1349 1363 clients_free(); 1364 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 1350 1365 ssynth_free(); 1366 #endif 1351 1367 #ifndef ROAR_WITHOUT_DCOMP_CB 1352 1368 midi_cb_stop(); // stop console beep
Note: See TracChangeset
for help on using the changeset viewer.