mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
implemented pax11publish.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@275 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b55923a8d3
commit
4bb14837dd
10 changed files with 379 additions and 20 deletions
|
|
@ -325,8 +325,12 @@ static void latency_complete(struct pa_stream *s, const struct pa_latency_info *
|
|||
|
||||
if (!l)
|
||||
p->dead = 1;
|
||||
else
|
||||
p->latency = l->buffer_usec + l->sink_usec + l->transport_usec;
|
||||
else {
|
||||
int negative = 0;
|
||||
p->latency = pa_stream_get_latency(s, l, &negative);
|
||||
if (negative)
|
||||
p->latency = 0;
|
||||
}
|
||||
}
|
||||
|
||||
pa_usec_t pa_simple_get_playback_latency(struct pa_simple *p, int *perror) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue