Jacek Konieczny : winealsa.drv: Allow external MIDI port connection changes.
Alexandre Julliard
julliard at winehq.org
Wed Feb 12 16:21:09 CST 2020
Module: wine
Branch: master
Commit: 1875887000b368cc57f2953cf8d2c043369674c6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1875887000b368cc57f2953cf8d2c043369674c6
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Wed Feb 12 12:53:25 2020 -0600
winealsa.drv: Allow external MIDI port connection changes.
That is generally the expected behaviour of any ALSA sequencer client.
Signed-off-by: Jacek Konieczny <jajcus at jajcus.net>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winealsa.drv/midi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winealsa.drv/midi.c b/dlls/winealsa.drv/midi.c
index 7be7bc58f3..879d48d824 100644
--- a/dlls/winealsa.drv/midi.c
+++ b/dlls/winealsa.drv/midi.c
@@ -248,16 +248,16 @@ static int midiOpenSeq(BOOL create_client)
snd_seq_set_client_name(midiSeq, "WINE midi driver");
port_out = snd_seq_create_simple_port(midiSeq, "WINE ALSA Output",
- SND_SEQ_PORT_CAP_READ,
- SND_SEQ_PORT_TYPE_APPLICATION);
+ SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ|SND_SEQ_PORT_CAP_SUBS_WRITE,
+ SND_SEQ_PORT_TYPE_MIDI_GENERIC|SND_SEQ_PORT_TYPE_APPLICATION);
if (port_out < 0)
TRACE("Unable to create output port\n");
else
TRACE("Outport port %d created successfully\n", port_out);
port_in = snd_seq_create_simple_port(midiSeq, "WINE ALSA Input",
- SND_SEQ_PORT_CAP_WRITE,
- SND_SEQ_PORT_TYPE_APPLICATION);
+ SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_READ|SND_SEQ_PORT_CAP_SUBS_WRITE,
+ SND_SEQ_PORT_TYPE_MIDI_GENERIC|SND_SEQ_PORT_TYPE_APPLICATION);
if (port_in < 0)
TRACE("Unable to create input port\n");
else
More information about the wine-cvs
mailing list