mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-15 20:30:49 +00:00
Avoid conflicts with libinstpatch's default SF2 modulators
By default, libinstpatch silently adds all SF2 default modulators to the converted DLS voices. Since fluidsynth respects the modulators provided by libinstpatch, those modulators would conflict with the default modulator list managed by fluidsynth. This is only noticeable, if the user used fluidsynth's API to manipulate default modulators.
This commit is contained in:
parent
33421922f3
commit
db1740b7e9
1 changed files with 3 additions and 0 deletions
|
@ -359,6 +359,9 @@ static IpatchSF2VoiceCache *convert_dls_to_sf2_instrument(fluid_instpatch_font_t
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* do not use the default modulator list of libinstpatch, we manage our own list of default modulators */
|
||||
ipatch_sf2_voice_cache_set_default_mods(cache, NULL);
|
||||
|
||||
ipatch_converter_add_input(conv, G_OBJECT(item));
|
||||
ipatch_converter_add_output(conv, G_OBJECT(cache));
|
||||
|
||||
|
|
Loading…
Reference in a new issue