Added support for async. Added error callback (and begun to use it). First implementation of pcm_share

This commit is contained in:
Abramo Bagnara 2000-10-11 12:37:27 +00:00
parent d07934a537
commit dcc88ffaa7
20 changed files with 1363 additions and 32 deletions

View file

@ -353,6 +353,9 @@ int pcm_shm_cmd(client_t *client)
ctrl->cmd = 0;
pcm = client->device.pcm.handle;
switch (cmd) {
case SND_PCM_IOCTL_ASYNC:
ctrl->result = snd_pcm_async(pcm, ctrl->u.async.sig, ctrl->u.async.pid);
break;
case SND_PCM_IOCTL_INFO:
ctrl->result = snd_pcm_info(pcm, &ctrl->u.info);
break;