summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2003-02-22 10:19:53 +0000
committerJaroslav Kysela <perex@perex.cz>2003-02-22 10:19:53 +0000
commitfbd99fdec07c67b50843b9baf12615129f952ae3 (patch)
tree29d660d52f1d2c4a0b0a42872396c9aaede15755 /aserver
parenta91efc0fe6f1fae81fd486bb768159f5116d4127 (diff)
Added snd_pcm_hwptr() and enhanced snd_pcm_mmap_begin() for no xrun mode.
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c
index 60af87bf..a6b4a4e2 100644
--- a/aserver/aserver.c
+++ b/aserver/aserver.c
@@ -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;