diff options
author | Taner Tas <taner76@gmail.com> | 2018-02-21 16:33:34 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-02-28 12:53:05 +0000 |
commit | 24cdbb59afb3e0141401a09cc98c918283ccdc49 (patch) | |
tree | c18c934ec904845e8c95d4f52137960751faeec0 /testing/portmidi/02_pmlinuxalsa.patch | |
parent | 478a4a468ecf31c263b6c76dfab0f2332bc3365f (diff) | |
download | aports-24cdbb59afb3e0141401a09cc98c918283ccdc49.tar.bz2 aports-24cdbb59afb3e0141401a09cc98c918283ccdc49.tar.xz |
testing/portmidi: new aport
http://portmedia.sourceforge.net/
PortMidi is a platform independent library for MIDI input/output.
Diffstat (limited to 'testing/portmidi/02_pmlinuxalsa.patch')
-rw-r--r-- | testing/portmidi/02_pmlinuxalsa.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/portmidi/02_pmlinuxalsa.patch b/testing/portmidi/02_pmlinuxalsa.patch new file mode 100644 index 0000000000..2464475180 --- /dev/null +++ b/testing/portmidi/02_pmlinuxalsa.patch @@ -0,0 +1,33 @@ +--- portmidi~/pm_linux/pmlinuxalsa.c 2009-09-16 05:41:04.000000000 +0200 ++++ portmidi/pm_linux/pmlinuxalsa.c 2009-09-16 05:45:29.000000000 +0200 +@@ -242,8 +242,8 @@ + alsa_descriptor_type desc = (alsa_descriptor_type) midi->descriptor; + if (!desc) return pmBadPtr; + +- if (pm_hosterror = snd_seq_disconnect_to(seq, desc->this_port, +- desc->client, desc->port)) { ++ if ((pm_hosterror = snd_seq_disconnect_to(seq, desc->this_port, ++ desc->client, desc->port))) { + // if there's an error, try to delete the port anyway, but don't + // change the pm_hosterror value so we retain the first error + snd_seq_delete_port(seq, desc->this_port); +@@ -332,8 +332,8 @@ + { + alsa_descriptor_type desc = (alsa_descriptor_type) midi->descriptor; + if (!desc) return pmBadPtr; +- if (pm_hosterror = snd_seq_disconnect_from(seq, desc->this_port, +- desc->client, desc->port)) { ++ if ((pm_hosterror = snd_seq_disconnect_from(seq, desc->this_port, ++ desc->client, desc->port))) { + snd_seq_delete_port(seq, desc->this_port); /* try to close port */ + } else { + pm_hosterror = snd_seq_delete_port(seq, desc->this_port); +@@ -606,7 +606,7 @@ + case SND_SEQ_EVENT_SYSEX: { + const BYTE *ptr = (const BYTE *) ev->data.ext.ptr; + /* assume there is one sysex byte to process */ +- pm_read_bytes(midi, ptr, ev->data.ext.len, timestamp); ++ pm_read_bytes(midi, (unsigned char*)ptr, ev->data.ext.len, timestamp); + break; + } + } |