summaryrefslogtreecommitdiffstats
path: root/polyp/module-alsa-source.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 00:23:51 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 00:23:51 +0000
commit34fe8bd893ed9c7531bc4898b934ef9d4cdf3e68 (patch)
tree816a8543d3521eb43fb49c67af33afc44769bd91 /polyp/module-alsa-source.c
parent9618aea5df5bf2c5069575f28a935c2039fc55e0 (diff)
add support for SCHED_FIFO
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@163 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module-alsa-source.c')
-rw-r--r--polyp/module-alsa-source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/module-alsa-source.c b/polyp/module-alsa-source.c
index 9dc623d4..13df9f96 100644
--- a/polyp/module-alsa-source.c
+++ b/polyp/module-alsa-source.c
@@ -95,7 +95,7 @@ static void do_read(struct userdata *u) {
assert(u->memchunk.memblock && u->memchunk.memblock->data && u->memchunk.length && u->memchunk.memblock->length && (u->memchunk.length % u->frame_size) == 0);
- if ((frames = snd_pcm_readi(u->pcm_handle, u->memchunk.memblock->data + u->memchunk.index, u->memchunk.length / u->frame_size)) < 0) {
+ if ((frames = snd_pcm_readi(u->pcm_handle, (uint8_t*) u->memchunk.memblock->data + u->memchunk.index, u->memchunk.length / u->frame_size)) < 0) {
if (frames == -EAGAIN)
return;