MIDIs not playing in games

Apologies if this is in the wrong forum, but for the past few hours I’ve been racking my brain trying to find out how to get MIDIs to work inside of games running under Wine.
I have both TiMidity++ and FluidSynth working fine, I can play MIDIs through them, but, whenever I try to play a game that uses MIDIs with Wine, the MIDIs don’t play at all.

Any help is appreciated.

Update: Using wintest.exe reveals that Wine actually is able to play MIDI files, it might be something else.
Not exactly sure what else that would be, although from what little I could tell from the Wine logs, and what I’ve heard, it might be a DirectSound issue

0164:fixme:imm:ImeSetActiveContext (00030154, 1): stub
0164:fixme:imm:ImmReleaseContext (00040160, 00030154): stub
0164:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0164:fixme:dmime:path_IPersistStream_Load (00994268, 00994238): Loading not implemented yet
0164:fixme:dmime:IDirectMusicPerformance8Impl_CreateAudioPath (009911D0, 00994268, 1, 0233CD50): stub
0164:fixme:dmime:IDirectMusicAudioPathImpl_Activate (00994958, 1): semi-stub
0164:fixme:dmime:IDirectMusicAudioPathImpl_GetObjectInPath (00994958, -5, 24576, 1, {00000000-0000-0000-0000-000000000000}, 0, {6825a449-7524-4d82-920f-50e36ab3ab1e}, 0233CD54): stub
0164:fixme:dmime:IDirectMusicAudioPathImpl_SetVolume (00994958, 0, 0): stub

This line specifically, is spammed constantly

0164:fixme:dmime:IDirectMusicAudioPathImpl_SetVolume (00994958, 0, 0): stub

After much mental pain, I finally found the solution thanks to Reddit and the Wine wiki
Turns out, I had to install ‘directmusic’ and ‘dsound’ through winetricks, and once I did that, everything worked.

If anyone is having the same problem as me, just do this and I hope it works for you.

winetricks dsound directmusic

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.