From 1b64948dd51dafc0fa69d69b9d97fa77179d3dac Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 26 Aug 1999 12:01:18 +0000 Subject: [PATCH] Small updates to follow new sequencer changes.. --- test/playmidi1.c | 2 +- test/seq-decoder.c | 1 + test/seq-sender.c | 1 + test/seq.c | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/playmidi1.c b/test/playmidi1.c index 315910f6..b42b522e 100644 --- a/test/playmidi1.c +++ b/test/playmidi1.c @@ -617,7 +617,7 @@ int main(int argc, char *argv[]) /* create port */ memset(&src_port_info, 0, sizeof(snd_seq_port_info_t)); - src_port_info.capability = SND_SEQ_PORT_CAP_OUT | SND_SEQ_PORT_CAP_IN; + src_port_info.capability = SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_READ; src_port_info.type = SND_SEQ_PORT_TYPE_MIDI_GENERIC; src_port_info.midi_channels = 16; src_port_info.synth_voices = 0; diff --git a/test/seq-decoder.c b/test/seq-decoder.c index bb45f34a..1c0e48cd 100644 --- a/test/seq-decoder.c +++ b/test/seq-decoder.c @@ -442,6 +442,7 @@ void event_decoder(snd_seq_t *handle, int argc, char *argv[]) fprintf(stderr, "Cannot set nonblock mode: %s\n", snd_strerror(err)); bzero(&port, sizeof(port)); strcpy(port.name, "Input"); + port.capability = SND_SEQ_PORT_CAP_WRITE; if ((err = snd_seq_create_port(handle, &port)) < 0) { fprintf(stderr, "Cannot create input port: %s\n", snd_strerror(err)); return; diff --git a/test/seq-sender.c b/test/seq-sender.c index 0e380607..595105c3 100644 --- a/test/seq-sender.c +++ b/test/seq-sender.c @@ -170,6 +170,7 @@ void event_sender(snd_seq_t *handle, int argc, char *argv[]) if ((err = snd_seq_block_mode(handle, 0))<0) fprintf(stderr, "Cannot set nonblock mode: %s\n", snd_strerror(err)); bzero(&port, sizeof(port)); + port.capability = SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_READ; strcpy(port.name, "Output"); if ((err = snd_seq_create_port(handle, &port)) < 0) { fprintf(stderr, "Cannot create output port: %s\n", snd_strerror(err)); diff --git a/test/seq.c b/test/seq.c index c50957f6..6b245349 100644 --- a/test/seq.c +++ b/test/seq.c @@ -96,8 +96,8 @@ void show_port_info(snd_seq_t *handle, int client, int port) printf(" Type : 0x%x\n", info.type); printf(" Midi channels : %i\n", info.midi_channels); printf(" Synth voices : %i\n", info.synth_voices); - printf(" Output subs : %i\n", info.out_use); - printf(" Input subs : %i\n", info.in_use); + printf(" Output subs : %i\n", info.write_use); + printf(" Input subs : %i\n", info.read_use); } } -- 2.11.0