pkgsrc - initial commit
[pkgsrc.git] / audio / fluidsynth / patches / patch-ae
1 $NetBSD: patch-ae,v 1.4 2009/05/13 22:08:21 wiz Exp $
2
3 --- src/fluidsynth.c.orig       2009-02-04 07:45:02.000000000 +0000
4 +++ src/fluidsynth.c
5 @@ -212,9 +212,9 @@ int main(int argc, char** argv)
6    int audio_channels = 0;
7    int with_server = 0;
8    int dump = 0;
9 -  int connect_lash = 1;
10    char *optchars = "a:C:c:df:G:g:hijK:L:lm:no:p:R:r:sVvz:";
11  #ifdef LASH_ENABLED
12 +  int connect_lash = 1;
13    int enabled_lash = 0;                /* set to TRUE if lash gets enabled */
14    fluid_lash_args_t *lash_args;
15  
16 @@ -237,7 +237,9 @@ int main(int argc, char** argv)
17        {"audio-groups", 1, 0, 'G'},
18        {"chorus", 1, 0, 'C'},
19        {"connect-jack-outputs", 0, 0, 'j'},
20 +#ifdef LASH_ENABLED
21        {"disable-lash", 0, 0, 'l'},
22 +#endif
23        {"dump", 0, 0, 'd'},
24        {"gain", 1, 0, 'g'},
25        {"help", 0, 0, 'h'},
26 @@ -344,9 +346,11 @@ int main(int argc, char** argv)
27        audio_channels = atoi(optarg);
28        fluid_settings_setint(settings, "synth.audio-channels", audio_channels);
29        break;
30 +#ifdef LASH_ENABLED
31      case 'l':                  /* disable LASH */
32        connect_lash = 0;
33        break;
34 +#endif
35      case 'm':
36        fluid_settings_setstr(settings, "midi.driver", optarg);
37        break;
38 @@ -421,6 +425,7 @@ int main(int argc, char** argv)
39  #endif
40  
41  #ifdef LASH_ENABLED
42 +#ifdef LASH_ENABLED
43    /* connect to the lash server */
44    if (connect_lash)
45      {
46 @@ -428,6 +433,7 @@ int main(int argc, char** argv)
47        fluid_settings_setint (settings, "lash.enable", enabled_lash ? 1 : 0);
48      }
49  #endif
50 +#endif
51  
52    /* The 'groups' setting is only relevant for LADSPA operation
53     * If not given, set number groups to number of audio channels, because