diff options
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; |