]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Small updates to follow new sequencer changes..
authorJaroslav Kysela <perex@perex.cz>
Thu, 26 Aug 1999 12:01:18 +0000 (12:01 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 26 Aug 1999 12:01:18 +0000 (12:01 +0000)
test/playmidi1.c
test/seq-decoder.c
test/seq-sender.c
test/seq.c

index 315910f6bc4750966a4c5eca0cdb30dcb4f2599f..b42b522e2b23c1a0c2f37c52fd5b44bbd24fa739 100644 (file)
@@ -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;
index bb45f34ad4b9cf45cb15290834557b2238f3e9e1..1c0e48cd28af494905bcbd3c2e8936b0bc3ad04f 100644 (file)
@@ -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;
index 0e380607bded3dc17314a16abc34401008b354cd..595105c3d5e304f6b4b3094d776b074369cd88ef 100644 (file)
@@ -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));
index c50957f6e557ca481a9d4ef90d8f0d4fb008f7c2..6b2453490d149020553b7288ead2f921fe3ccc4c 100644 (file)
@@ -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);
        }
 }