mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Decoder is now generic MIDI device
This commit is contained in:
parent
fea03e9eba
commit
871c3e7656
1 changed files with 1 additions and 0 deletions
|
|
@ -275,6 +275,7 @@ void event_decoder(snd_seq_t *handle, int argc, char *argv[])
|
||||||
fprintf(stderr, "Cannot set nonblock mode: %s\n", snd_strerror(err));
|
fprintf(stderr, "Cannot set nonblock mode: %s\n", snd_strerror(err));
|
||||||
snd_seq_port_info_alloca(&pinfo);
|
snd_seq_port_info_alloca(&pinfo);
|
||||||
snd_seq_port_info_set_name(pinfo, "Input");
|
snd_seq_port_info_set_name(pinfo, "Input");
|
||||||
|
snd_seq_port_info_set_type(pinfo, SND_SEQ_PORT_TYPE_MIDI_GENERIC);
|
||||||
snd_seq_port_info_set_capability(pinfo, SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_WRITE);
|
snd_seq_port_info_set_capability(pinfo, SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_WRITE);
|
||||||
if ((err = snd_seq_create_port(handle, pinfo)) < 0) {
|
if ((err = snd_seq_create_port(handle, pinfo)) < 0) {
|
||||||
fprintf(stderr, "Cannot create input port: %s\n", snd_strerror(err));
|
fprintf(stderr, "Cannot create input port: %s\n", snd_strerror(err));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue