mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
latency work
major main loop bugfix git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@154 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b6b428e5cb
commit
92bf0a365a
21 changed files with 126 additions and 61 deletions
|
|
@ -211,6 +211,8 @@ void pa_pstream_send_packet(struct pa_pstream*p, struct pa_packet *packet) {
|
|||
struct item_info *i;
|
||||
assert(p && packet);
|
||||
|
||||
/*fprintf(stderr, "push-packet %p\n", packet);*/
|
||||
|
||||
i = pa_xmalloc(sizeof(struct item_info));
|
||||
i->type = PA_PSTREAM_ITEM_PACKET;
|
||||
i->packet = pa_packet_ref(packet);
|
||||
|
|
@ -258,6 +260,8 @@ static void prepare_next_write_item(struct pa_pstream *p) {
|
|||
p->write.index = 0;
|
||||
|
||||
if (p->write.current->type == PA_PSTREAM_ITEM_PACKET) {
|
||||
/*fprintf(stderr, "pop-packet %p\n", p->write.current->packet);*/
|
||||
|
||||
assert(p->write.current->packet);
|
||||
p->write.data = p->write.current->packet->data;
|
||||
p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH] = htonl(p->write.current->packet->length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue