#include <inttypes.h>
#include "cdecl.h"
+#include "sample.h"
/** \file
* Global definitions */
/** 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