$NetBSD: patch-ae,v 1.2 2007/02/05 23:23:12 wiz Exp $ --- src/fluidsynth.c.orig 2006-02-20 11:29:58.000000000 +0000 +++ src/fluidsynth.c @@ -214,9 +214,9 @@ int main(int argc, char** argv) int audio_channels = 0; int with_server = 0; int dump = 0; - int connect_lash = 1; char *optchars = "a:C:c:df:G:g:hijK:L:lm:no:R:r:sVvz:"; #ifdef LASH_ENABLED + int connect_lash = 1; int enabled_lash = 0; /* set to TRUE if lash gets enabled */ fluid_lash_args_t *lash_args; @@ -239,7 +239,9 @@ int main(int argc, char** argv) {"audio-groups", 1, 0, 'G'}, {"chorus", 1, 0, 'C'}, {"connect-jack-outputs", 0, 0, 'j'}, +#ifdef LASH_ENABLED {"disable-lash", 0, 0, 'l'}, +#endif {"dump", 0, 0, 'd'}, {"gain", 1, 0, 'g'}, {"help", 0, 0, 'h'}, @@ -345,9 +347,11 @@ int main(int argc, char** argv) audio_channels = atoi(optarg); fluid_settings_setint(settings, "synth.audio-channels", audio_channels); break; +#ifdef LASH_ENABLED case 'l': /* disable LASH */ connect_lash = 0; break; +#endif case 'm': fluid_settings_setstr(settings, "midi.driver", optarg); break; @@ -419,6 +423,7 @@ int main(int argc, char** argv) #endif #ifdef LASH_ENABLED +#ifdef LASH_ENABLED /* connect to the lash server */ if (connect_lash) { @@ -426,6 +431,7 @@ int main(int argc, char** argv) fluid_settings_setint (settings, "lash.enable", enabled_lash ? 1 : 0); } #endif +#endif /* The 'groups' setting is only relevant for LADSPA operation * If not given, set number groups to number of audio channels, because