fluidsynth: add sf3 to soundfont search path
authorFabian Greffrath <fabian@greffrath.com>
Tue, 24 Sep 2019 18:29:21 +0000 (20:29 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 1 Oct 2019 11:49:52 +0000 (12:49 +0100)
In Debian, soundfonts in SF3 format (i.e. the same as SF2 format but
with Ogg/Vorbis-compressed samples) are installed into
/usr/share/sounds/sf3. Soundfonts in SF3 format are supported since
FluidSynth 1.1.7 (released in Feb 2018).

ext/fluidsynth/gstfluiddec.c

index c9514db..c7466f7 100644 (file)
@@ -530,8 +530,9 @@ gst_fluid_dec_open (GstFluidDec * fluiddec)
         fluiddec->soundfont);
   } else {
     gint i, j;
-    /* ubuntu/debian in sounds/sf2, fedora in soundfonts */
-    static const gchar *paths[] = { "sounds/sf2/", "soundfonts/", NULL };
+    /* ubuntu/debian in sounds/sf[23], fedora in soundfonts */
+    static const gchar *paths[] =
+        { "sounds/sf3/", "sounds/sf2/", "soundfonts/", NULL };
 
     sharedirs = g_get_system_data_dirs ();