Ralf Beck : winealsa.drv: Add midi realtime and midi common messages on midi input.

Alexandre Julliard julliard at wine.codeweavers.com
Fri May 25 14:43:42 CDT 2007


Module: wine
Branch: master
Commit: e1d7365f3d1ee546a5074b5655af3099308a8da6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e1d7365f3d1ee546a5074b5655af3099308a8da6

Author: Ralf Beck <musical_snake at gmx.de>
Date:   Wed May 23 19:13:11 2007 +0200

winealsa.drv: Add midi realtime and midi common messages on midi input.

---

 dlls/winealsa.drv/midi.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/dlls/winealsa.drv/midi.c b/dlls/winealsa.drv/midi.c
index 90d52e6..fb7a6fc 100644
--- a/dlls/winealsa.drv/midi.c
+++ b/dlls/winealsa.drv/midi.c
@@ -345,6 +345,27 @@ static DWORD WINAPI midRecThread(LPVOID arg)
 		case SND_SEQ_EVENT_CHANPRESS:
 		    toSend = (ev->data.control.value << 16) | (ev->data.control.param << 8) | MIDI_CMD_CHANNEL_PRESSURE | ev->data.control.channel;
 		    break;
+                case SND_SEQ_EVENT_CLOCK:
+                    toSend = 0xF8;
+                    break;
+                case SND_SEQ_EVENT_START:
+                    toSend = 0xFA;
+                    break;
+                case SND_SEQ_EVENT_CONTINUE:
+                    toSend = 0xFB;
+                    break;
+                case SND_SEQ_EVENT_STOP:
+                    toSend = 0xFC;
+                    break;
+                case SND_SEQ_EVENT_SONGPOS:
+                    toSend = (((ev->data.control.value >> 7) & 0x7f) << 16) | ((ev->data.control.value & 0x7f) << 8) | 0xF2;
+                    break;
+                case SND_SEQ_EVENT_SONGSEL:
+                  toSend = ((ev->data.control.value & 0x7f) << 8) | 0xF3;
+                    break;
+                case SND_SEQ_EVENT_RESET:
+                    toSend = 0xFF;
+                    break;
 		case SND_SEQ_EVENT_SYSEX:
 		    {
 			int len = ev->data.ext.len;




More information about the wine-cvs mailing list