summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-def.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-27 01:29:49 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-27 01:29:49 +0000
commit92bf0a365a3a8390bb3f023458a9e62c31849628 (patch)
tree23adcb50a438e13a0f3d46d492a2992b13b8f962 /polyp/polyplib-def.h
parentb6b428e5cbfc2440f5950c0744e15bc4d84e6b31 (diff)
latency work
major main loop bugfix git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@154 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-def.h')
-rw-r--r--polyp/polyplib-def.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/polyp/polyplib-def.h b/polyp/polyplib-def.h
index 6420e87e..02f5e526 100644
--- a/polyp/polyplib-def.h
+++ b/polyp/polyplib-def.h
@@ -24,6 +24,7 @@
#include <inttypes.h>
#include "cdecl.h"
+#include "sample.h"
/** \file
* Global definitions */
@@ -128,6 +129,14 @@ enum pa_subscription_event_type {
/** Return one if an event type t matches an event mask bitfield */
#define pa_subscription_match_flags(m, t) (!!((m) & (1 << ((t) & PA_SUBSCRIPTION_EVENT_FACILITY_MASK))))
+/** A structure for latency info. See pa_stream_get_latency(). */
+struct pa_latency_info {
+ pa_usec_t buffer_usec; /**< Time in usecs the current buffer takes to play */
+ pa_usec_t sink_usec; /**< Time in usecs a sample takes to be played on the sink. The total latency is buffer_usec+sink_usec. */
+ int playing; /**< Non-zero when the stream is currently playing */
+ int queue_length; /**< Queue size in bytes. */
+};
+
PA_C_DECL_END
#endif