mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add support for SCHED_FIFO
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@163 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9618aea5df
commit
34fe8bd893
24 changed files with 181 additions and 49 deletions
|
|
@ -202,7 +202,7 @@ static void pstream_memblock_callback(struct pa_pstream *p, uint32_t channel, ui
|
|||
|
||||
if ((s = pa_dynarray_get(c->record_streams, channel))) {
|
||||
if (s->read_callback)
|
||||
s->read_callback(s, chunk->memblock->data + chunk->index, chunk->length, s->read_userdata);
|
||||
s->read_callback(s, (uint8_t*) chunk->memblock->data + chunk->index, chunk->length, s->read_userdata);
|
||||
}
|
||||
|
||||
pa_context_unref(c);
|
||||
|
|
@ -451,7 +451,7 @@ static void set_dispatch_callbacks(struct pa_operation *o) {
|
|||
else {
|
||||
if (o->callback) {
|
||||
void (*cb)(struct pa_context *c, void *userdata);
|
||||
cb = (void*) o->callback;
|
||||
cb = (void (*)(struct pa_context*, void*)) o->callback;
|
||||
cb(o->context, o->userdata);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue