]> code.delx.au - pulseaudio/commitdiff
core: document difference between IO and main thread view on requested latency
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2009 22:54:25 +0000 (00:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2009 22:54:25 +0000 (00:54 +0200)
src/pulsecore/sink.c

index 77908c9adf2842c155cc26fead5a1d04db99829d..c1589f2d15676e00fd44878def4a33c344224c21 100644 (file)
@@ -1917,6 +1917,9 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
             pa_usec_t *usec = userdata;
             *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)
                 *usec = s->thread_info.max_latency;