mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
core: document difference between IO and main thread view on requested latency
This commit is contained in:
parent
c6080d8c61
commit
3c271ae060
1 changed files with 3 additions and 0 deletions
|
|
@ -1917,6 +1917,9 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
|
||||||
pa_usec_t *usec = userdata;
|
pa_usec_t *usec = userdata;
|
||||||
*usec = pa_sink_get_requested_latency_within_thread(s);
|
*usec = pa_sink_get_requested_latency_within_thread(s);
|
||||||
|
|
||||||
|
/* Yes, that's right, the IO thread will see -1 when no
|
||||||
|
* explicit requested latency is configured, the main
|
||||||
|
* thread will see max_latency */
|
||||||
if (*usec == (pa_usec_t) -1)
|
if (*usec == (pa_usec_t) -1)
|
||||||
*usec = s->thread_info.max_latency;
|
*usec = s->thread_info.max_latency;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue