Change soundfont file search path for fluiddec
authorРуслан Ижбулатов <lrn1986@gmail.com>
Mon, 10 Feb 2014 08:19:52 +0000 (08:19 +0000)
committerWim Taymans <wtaymans@redhat.com>
Mon, 10 Feb 2014 10:34:16 +0000 (11:34 +0100)
commit270b57fc33301f37511200e468b7ef51fdc5e672
tree67e889cb7faf43aeb0f35acb5114a2967ea6ecd7
parent008c15c910dbbe1d4323ded31dc1c5c567ce3a8c
Change soundfont file search path for fluiddec

Use glib to get a list of system "share" directories, then go through that
list, appending 'sounds/sf2/' to each directory to get a soundfont directory,
and looking for .sf2 files there.

This way fluiddec is able to load sf2 files on W32, because otherwise the
path '/usr/share/sounds/sf2' makes no sense there.

Fixes #724013
ext/fluidsynth/gstfluiddec.c