add new PA_STREAM_AUTO_TIMING_UPDATE

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@672 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-04-10 17:38:46 +00:00
parent 4496954514
commit 190a869132

View file

@ -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_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 PA_STREAM_INTERPOLATE_TIMING = 2, /**< Interpolate the latency for
* this stream. When enabled, * this stream. When enabled,
* pa_stream_get_latency() and pa_stream_get_time() * pa_stream_get_latency() and
* will try to estimate the * pa_stream_get_time() will try
* current record/playback time * to estimate the current
* based on the local time that * record/playback time based on
* passed since the last timing * the local time that passed
* info update. In addition * since the last timing info
* timing update requests are * update. Using this option
* issued periodically * has the advantage of not
* automatically. Using this * requiring a whole roundtrip
* option has the advantage of * when the current
* not requiring a whole
* roundtrip when the current
* playback/recording time is * playback/recording time is
* needed. Consider using this * needed. Consider using this
* option when requesting * option when requesting
@ -101,7 +99,10 @@ typedef enum pa_stream_flags {
* frequently. This is * frequently. This is
* especially useful on long * especially useful on long
* latency network * 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 PA_STREAM_NOT_MONOTONOUS = 4, /**< Don't force the time to
* increase monotonically. If * increase monotonically. If
* this option is enabled, * this option is enabled,
@ -118,6 +119,16 @@ typedef enum pa_stream_flags {
* ahead can be corrected * ahead can be corrected
* quickly, without the need to * quickly, without the need to
* wait. */ * 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; } pa_stream_flags_t;
/** Playback and record buffer metrics */ /** Playback and record buffer metrics */