Commit 5c68f91d authored by Max Kellermann's avatar Max Kellermann

wildmidi: obtain timidity.cfg location from mpd.conf

parent 1f88cd73
...@@ -30,12 +30,15 @@ enum { ...@@ -30,12 +30,15 @@ enum {
}; };
static bool static bool
wildmidi_init(G_GNUC_UNUSED const struct config_param *param) wildmidi_init(const struct config_param *param)
{ {
const char *config_file;
int ret; int ret;
ret = WildMidi_Init("/etc/timidity/timidity.cfg", config_file = config_get_block_string(param, "config_file",
WILDMIDI_SAMPLE_RATE, 0); "/etc/timidity/timidity.cfg");
ret = WildMidi_Init(config_file, WILDMIDI_SAMPLE_RATE, 0);
return ret == 0; return ret == 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment