Add patch by khalek to add midi command 0xd0 to ALSA driver
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1597
This commit is contained in:
parent
4976c1fea0
commit
2e8a1efcbd
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: midi_alsa.h,v 1.5 2004-01-10 14:03:35 qbix79 Exp $ */
|
||||
/* $Id: midi_alsa.h,v 1.6 2004-01-21 07:43:10 harekiet Exp $ */
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -106,6 +106,10 @@ public:
|
|||
snd_seq_ev_set_pgmchange(&ev, chanID, midiCmd[1]);
|
||||
send_event(0);
|
||||
break;
|
||||
case 0xD0:
|
||||
snd_seq_ev_set_chanpress(&ev, chanID, midiCmd[1]);
|
||||
send_event(0);
|
||||
break;
|
||||
case 0xE0:{
|
||||
long theBend = ((long)midiCmd[1] + (long)(midiCmd[2] << 7)) - 0x2000;
|
||||
snd_seq_ev_set_pitchbend(&ev, chanID, theBend);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue