summaryrefslogtreecommitdiff
path: root/src/pulsecore/device-port.h
diff options
context:
space:
mode:
authorpoljar <poljarinho@gmail.com>2012-06-22 20:55:53 +0200
committerTanu Kaskinen <tanuk@iki.fi>2012-06-25 19:49:54 +0300
commitbc0348789623f0b253795c2d661bc9ea25111793 (patch)
tree43fb870bd89b2f40ca1ead5feaf9daf39885e484 /src/pulsecore/device-port.h
parent56ce2c67c2f6be565e7292fc3676d57d2ac39504 (diff)
device-port: Add a latency variable to the port struct
A latency offset variable was added to the port struct and a function to set the latency offset. The latency offset does nothing for now, but it will be later added to the sink/source latency.
Diffstat (limited to 'src/pulsecore/device-port.h')
-rw-r--r--src/pulsecore/device-port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/device-port.h b/src/pulsecore/device-port.h
index 63d5ccf99..588019575 100644
--- a/src/pulsecore/device-port.h
+++ b/src/pulsecore/device-port.h
@@ -51,6 +51,7 @@ struct pa_device_port {
pa_hashmap *profiles; /* Does not own the profiles */
pa_bool_t is_input:1;
pa_bool_t is_output:1;
+ pa_usec_t latency_offset;
/* .. followed by some implementation specific data */
};
@@ -67,4 +68,6 @@ void pa_device_port_hashmap_free(pa_hashmap *h);
/* The port's available status has changed */
void pa_device_port_set_available(pa_device_port *p, pa_port_available_t available);
+void pa_device_port_set_latency_offset(pa_device_port *p, pa_usec_t offset);
+
#endif