mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Small fixes to get ALSA sequencer and example code for alsa-lib (playmidi1) working again.
This commit is contained in:
parent
e0741a5863
commit
0b124b53bf
2 changed files with 23 additions and 16 deletions
|
|
@ -203,6 +203,8 @@ int snd_seq_set_client_info(void *handle, snd_seq_client_info_t * info)
|
|||
seq = (snd_seq_t *) handle;
|
||||
if (!seq || !info)
|
||||
return -EINVAL;
|
||||
info->client = seq->client;
|
||||
info->type = USER_CLIENT;
|
||||
if (ioctl(seq->fd, SND_SEQ_IOCTL_SET_CLIENT_INFO, info) < 0)
|
||||
return -errno;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue