diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-01 00:23:51 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-01 00:23:51 +0000 |
commit | 34fe8bd893ed9c7531bc4898b934ef9d4cdf3e68 (patch) | |
tree | 816a8543d3521eb43fb49c67af33afc44769bd91 /polyp/module-alsa-sink.c | |
parent | 9618aea5df5bf2c5069575f28a935c2039fc55e0 (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-sink.c')
-rw-r--r-- | polyp/module-alsa-sink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/module-alsa-sink.c b/polyp/module-alsa-sink.c index 06b07f33..0c9d77b8 100644 --- a/polyp/module-alsa-sink.c +++ b/polyp/module-alsa-sink.c @@ -99,7 +99,7 @@ static void do_write(struct userdata *u) { assert(memchunk->memblock && memchunk->memblock->data && memchunk->length && memchunk->memblock->length && (memchunk->length % u->frame_size) == 0); - if ((frames = snd_pcm_writei(u->pcm_handle, memchunk->memblock->data + memchunk->index, memchunk->length / u->frame_size)) < 0) { + if ((frames = snd_pcm_writei(u->pcm_handle, (uint8_t*) memchunk->memblock->data + memchunk->index, memchunk->length / u->frame_size)) < 0) { if (frames == -EAGAIN) return; |