Ralf Beck : winealsa.drv:
Correct midi input program change + channel aftertouch.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 7 08:26:26 CDT 2007
Module: wine
Branch: master
Commit: 92ef2814eb48bed3c859f306a41d8b8e41d4cbec
URL: http://source.winehq.org/git/wine.git/?a=commit;h=92ef2814eb48bed3c859f306a41d8b8e41d4cbec
Author: Ralf Beck <musical_snake at gmx.de>
Date: Mon Aug 6 18:34:11 2007 +0200
winealsa.drv: Correct midi input program change + channel aftertouch.
---
dlls/winealsa.drv/midi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winealsa.drv/midi.c b/dlls/winealsa.drv/midi.c
index a95f36c..f5e98ed 100644
--- a/dlls/winealsa.drv/midi.c
+++ b/dlls/winealsa.drv/midi.c
@@ -346,10 +346,10 @@ static DWORD WINAPI midRecThread(LPVOID arg)
toSend = (((value >> 7) & 0x7f) << 16) | ((value & 0x7f) << 8) | MIDI_CMD_BENDER | ev->data.control.channel;
break;
case SND_SEQ_EVENT_PGMCHANGE:
- toSend = (ev->data.control.value << 16) | (ev->data.control.param << 8) | MIDI_CMD_PGM_CHANGE | ev->data.control.channel;
+ toSend = ((ev->data.control.value & 0x7f) << 8) | MIDI_CMD_PGM_CHANGE | ev->data.control.channel;
break;
case SND_SEQ_EVENT_CHANPRESS:
- toSend = (ev->data.control.value << 16) | (ev->data.control.param << 8) | MIDI_CMD_CHANNEL_PRESSURE | ev->data.control.channel;
+ toSend = ((ev->data.control.value & 0x7f) << 8) | MIDI_CMD_CHANNEL_PRESSURE | ev->data.control.channel;
break;
case SND_SEQ_EVENT_CLOCK:
toSend = 0xF8;
More information about the wine-cvs
mailing list