https://bugs.winehq.org/show_bug.cgi?id=50703
Bug ID: 50703 Summary: number of midi ports limited to 16 Product: Wine Version: 6.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: winmm&mci Assignee: wine-bugs@winehq.org Reporter: bugs.winehq.org@mrtoasted.com Distribution: ---
As mentioned on the forum https://forum.winehq.org/viewtopic.php?t=33605&p=126857 the number of midi ports are arbitrarily limited to the first 16 that are found.
If I add up all midi devices (physical or virtual) I can easily get way beyond this number, which means that I often can't select the port I actually want to use.
Please allow wine to list all available midi ports (physical + virtual) on the system.
https://bugs.winehq.org/show_bug.cgi?id=50703
--- Comment #1 from dreamer bugs.winehq.org@mrtoasted.com --- Apparently this is hardcoded here? -> https://github.com/wine-mirror/wine/blob/e909986e6ea5ecd49b2b847f321ad89b2ae...
Suggestion to increase these lines to something higher, say 64 or 128 (in my studio I can easily get to 30 ports).
Will try soon-ish if this works without problems.
https://bugs.winehq.org/show_bug.cgi?id=50703
--- Comment #2 from dreamer bugs.winehq.org@mrtoasted.com --- I finally got a round to try a build setting the maximum to 64 and it works totally fine!
The comment mentions a refactor that would allow for an "unbound" amount of devices, which ultimately would be ideal. However I do not have any idea on how to do this.
For now 64 would be "enough for me", even though I can totally see someone surpassing this number. Especially considering that it includes all software ports on top of connected hardware.
Should I make a PR to do this initial increase, or wait for someone to figure out the unbound case? For me it's really problematic that I have to turn off software and disconnect devices, just so I can select the device that I want.
https://bugs.winehq.org/show_bug.cgi?id=50703
sirjohndfox@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sirjohndfox@protonmail.com
--- Comment #3 from sirjohndfox@protonmail.com --- Thanks so much, this has been bugging me for a long time too - I have a large multiport interface and extra usb devices. Manually patched. Hopefully it makes it in properly one day. I think there may be some misunderstanding on the devs part about the nature of the problem.
There's absolutely cases where more than 16 port are necessary.
Cheers.
https://bugs.winehq.org/show_bug.cgi?id=50703
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #4 from Zeb Figura z.figura12@gmail.com --- (In reply to sirjohndfox from comment #3)
I think there may be some misunderstanding on the devs part about the nature of the problem.
There's absolutely cases where more than 16 port are necessary.
I don't think there was any such comment? The only non-clerical feedback in [1] I see is a request to remove the limit altogether.
[1] https://gitlab.winehq.org/wine/wine/-/merge_requests/1893