Skip to content

Commit

Permalink
ALSA MIDI out: Also provide type
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Mar 29, 2024
1 parent 4c4048b commit e186574
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/gui/midi_alsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,16 @@ class MidiHandler_alsa : public MidiHandler {
const int id = snd_seq_client_info_get_client(sscit);
const char *name = snd_seq_client_info_get_name(sscit);
const int ports = snd_seq_client_info_get_num_ports(sscit);
LOG_MSG("ALSA seq enum: id=%d name=\"%s\" ports=%d",id,name,ports);

const char *ct_str = "?";
const snd_seq_client_type_t ct = snd_seq_client_info_get_type(sscit);
switch (ct) {
case SND_SEQ_KERNEL_CLIENT: ct_str = "kernel"; break;
case SND_SEQ_USER_CLIENT: ct_str = "user"; break;
default: break;
};

LOG_MSG("ALSA seq enum: id=%d name=\"%s\" ports=%d type=\"%s\"",id,name,ports,ct_str);
} while ((status=snd_seq_query_next_client(seq_handle,sscit)) >= 0);
}
snd_seq_client_info_free(sscit);
Expand Down

0 comments on commit e186574

Please sign in to comment.