Bruno Jesus : winealsa.drv: Fix handling of system real time MIDI messages.
Alexandre Julliard
julliard at winehq.org
Thu Apr 20 12:35:11 CDT 2017
Module: wine
Branch: stable
Commit: d551678d79fb0d51b3d719df83e4d39368394a9d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d551678d79fb0d51b3d719df83e4d39368394a9d
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Tue Jan 31 04:16:17 2017 -0200
winealsa.drv: Fix handling of system real time MIDI messages.
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 53454ce9359f4ec485aa9411a0e9b14e3d1ed0fa)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/winealsa.drv/midi.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/dlls/winealsa.drv/midi.c b/dlls/winealsa.drv/midi.c
index 6fc75ee..6ef1976 100644
--- a/dlls/winealsa.drv/midi.c
+++ b/dlls/winealsa.drv/midi.c
@@ -909,10 +909,15 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
case 0x0B: /* Continue */
case 0x0C: /* Stop */
case 0x0E: /* Active Sensing. */
- /* FIXME: Is this function suitable for these purposes
- (and also Song Select and Song Position Pointer) */
- snd_seq_ev_set_sysex(&event, 1, &evt);
+ {
+ snd_midi_event_t *midi_event;
+
+ snd_midi_event_new(1, &midi_event);
+ snd_midi_event_init(midi_event);
+ snd_midi_event_encode_byte(midi_event, evt, &event);
+ snd_midi_event_free(midi_event);
break;
+ }
case 0x0F: /* Reset */
/* snd_seq_ev_set_sysex(&event, 1, &evt);
this other way may be better */
More information about the wine-cvs
mailing list