mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added snd_pcm_hwptr() and enhanced snd_pcm_mmap_begin() for no xrun mode.
This commit is contained in:
parent
a91efc0fe6
commit
fbd99fdec0
17 changed files with 231 additions and 13 deletions
|
|
@ -471,6 +471,9 @@ static int pcm_shm_cmd(client_t *client)
|
|||
case SND_PCM_IOCTL_HWSYNC:
|
||||
ctrl->result = snd_pcm_hwsync(pcm);
|
||||
break;
|
||||
case SND_PCM_IOCTL_HWPTR:
|
||||
ctrl->result = snd_pcm_hwptr(pcm, (snd_pcm_uframes_t *) &ctrl->u.hwptr.frames);
|
||||
break;
|
||||
case SNDRV_PCM_IOCTL_DELAY:
|
||||
ctrl->result = snd_pcm_delay(pcm, (snd_pcm_sframes_t *) &ctrl->u.delay.frames);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue