only 16 MIDI devices are available when running Windows software via WINE

Discuss running non-Linux applications and plugins on Linux, for example via wine

Moderators: MattKingUSA, khz

Post Reply
GoaSkin
Established Member
Posts: 14
Joined: Sat Apr 11, 2020 7:42 pm
Been thanked: 1 time

only 16 MIDI devices are available when running Windows software via WINE

Post by GoaSkin »

Hello,

I am using an iConnectivity mio10 MIDI interfaces which offers 16 MIDI inputs and outputs. Furthermore, my audio interface and my NI Komplete Kontrol S61 MK2 also provide MIDI ports.

When I am running software instruments made for Windows via WINE, there are always only 16 MIDI ports listed. If everything is turned on, two MIDI ports from the master keyboard and 14/16 from the iConnectivity device are listed. If I turn any device off, the others appear but still totally restricted to 16.

I looked a bit into the source code of the WINE midimap.dll and for me this looks like if there are some for-loops which may be the reason that the number of handled device is limited to 16. Does anybody know if there is a patched version?
Drumfix
Established Member
Posts: 299
Joined: Mon Jan 26, 2009 5:15 pm
Been thanked: 11 times

Re: only 16 MIDI devices are available when running Windows software via WINE

Post by Drumfix »

Unfortunately you will have to recompile wine.

Change the two constants in <wine-src>/include/mmddk.h:

#define MAX_MIDIINDRV (16)
#define MAX_MIDIOUTDRV (16)

to whatever number of ports you want to use.
Post Reply