http://bugs.winehq.org/show_bug.cgi?id=10791
--- Comment #17 from Mark Toman kram1024@hotmail.com 2011-12-03 18:09:06 CST --- that sounds like a better idea than a hijack of timitiy++, though some apps may explicitly look for gm.dls and then fail due to its non-existence. If you are going to go that route, first we will need to check to see if dsound is actually being used as well as dswave and dmusic, in the case of rpg maker xp and vx, then answer is yes, it uses the microsoft ds wavetable synthesizer directly via dmusic. We can then for those apps that complain, put in a fake gm.dls and have the synth redirect to the sf2 file. There are though times when the real gm.dls is needed, i.e. OpenMPT does not use dmusic directly, though it does use part of it to load gm.dls so that it can extract samples to make tracker modules when everything is installed as it is normally and that could cause problems.
There is yet another thing we can do. Make a tool for wine that can import a sf2 and recompile it as a dls file and auto-rename as gm.dls in the drive_c/windows/system32/drivers folder where directx on normal windows expects it to be from compatibility reasons, and that would make all apps happy.