]> code.delx.au - pulseaudio/commitdiff
doc: Clarify pa_stream_get_latency() return value
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 30 Dec 2011 18:19:59 +0000 (23:49 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 30 Dec 2011 18:20:19 +0000 (23:50 +0530)
Clarifies that the latency is returned via an inout parameter and the
return value is an error code or 0 on success.

src/pulse/stream.h

index 0422cc9466e52472e8abe7e881132ebdd519e52e..6e6d34a84680414b9f2c6f60b6765ffad38db1f0 100644 (file)
@@ -691,16 +691,18 @@ pa_operation* pa_stream_set_name(pa_stream *s, const char *name, pa_stream_succe
  * see pa_stream_get_timing_info(). */
 int pa_stream_get_time(pa_stream *s, pa_usec_t *r_usec);
 
-/** Return the total stream latency. This function is based on
+/** Determine the total stream latency. This function is based on
  * pa_stream_get_time().
  *
- * In case the stream is a monitoring stream the result can be
- * negative, i.e. the captured samples are not yet played. In this
- * case \a *negative is set to 1.
+ * The latency is stored in \a *r_usec. In case the stream is a
+ * monitoring stream the result can be negative, i.e. the captured
+ * samples are not yet played. In this case \a *negative is set to 1.
  *
  * If no timing information has been received yet, this call will
- * return PA_ERR_NODATA. For more details see
- * pa_stream_get_timing_info() and pa_stream_get_time(). */
+ * return PA_ERR_NODATA. On success, it will return 0.
+ *
+ * For more details see pa_stream_get_timing_info() and
+ * pa_stream_get_time(). */
 int pa_stream_get_latency(pa_stream *s, pa_usec_t *r_usec, int *negative);
 
 /** Return the latest raw timing data structure. The returned pointer