summaryrefslogtreecommitdiffstats
path: root/src/polyp
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-10 17:38:46 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-10 17:38:46 +0000
commit190a8691326513d8d6e407b3fdded842f8661a52 (patch)
tree24565daea9c826c6b5bd3bccd08886cc122e4212 /src/polyp
parent4496954514af459a74b6bca692780a64c5599106 (diff)
add new PA_STREAM_AUTO_TIMING_UPDATE
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@672 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp')
-rw-r--r--src/polyp/def.h37
1 files changed, 24 insertions, 13 deletions
diff --git a/src/polyp/def.h b/src/polyp/def.h
index 1a7a20c3..eadddf08 100644
--- a/src/polyp/def.h
+++ b/src/polyp/def.h
@@ -82,18 +82,16 @@ typedef enum pa_stream_flags {
PA_STREAM_START_CORKED = 1, /**< Create the stream corked, requiring an explicit pa_stream_cork() call to uncork it. */
PA_STREAM_INTERPOLATE_TIMING = 2, /**< Interpolate the latency for
* this stream. When enabled,
- * pa_stream_get_latency() and pa_stream_get_time()
- * will try to estimate the
- * current record/playback time
- * based on the local time that
- * passed since the last timing
- * info update. In addition
- * timing update requests are
- * issued periodically
- * automatically. Using this
- * option has the advantage of
- * not requiring a whole
- * roundtrip when the current
+ * pa_stream_get_latency() and
+ * pa_stream_get_time() will try
+ * to estimate the current
+ * record/playback time based on
+ * the local time that passed
+ * since the last timing info
+ * update. Using this option
+ * has the advantage of not
+ * requiring a whole roundtrip
+ * when the current
* playback/recording time is
* needed. Consider using this
* option when requesting
@@ -101,7 +99,10 @@ typedef enum pa_stream_flags {
* frequently. This is
* especially useful on long
* latency network
- * connections. */
+ * connections. It makes a lot
+ * of sense to combine this
+ * option with
+ * PA_STREAM_AUTO_TIMING_UPDATE. */
PA_STREAM_NOT_MONOTONOUS = 4, /**< Don't force the time to
* increase monotonically. If
* this option is enabled,
@@ -118,6 +119,16 @@ typedef enum pa_stream_flags {
* ahead can be corrected
* quickly, without the need to
* wait. */
+ PA_STREAM_AUTO_TIMING_UPDATE = 8 /** If set timing update requests
+ * are issued periodically
+ * automatically. Combined with
+ * PA_STREAM_INTERPOLATE_TIMING
+ * you will be able to query the
+ * current time and latency with
+ * pa_stream_get_time() and
+ * pa_stream_get_latency() at
+ * all times without a packet
+ * round trip.*/
} pa_stream_flags_t;
/** Playback and record buffer metrics */