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.
p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
p->is_input = FALSE;
p->is_output = FALSE;
+ p->latency_offset = 0;
p->proplist = pa_proplist_new();
return p;
pa_hashmap_free(h, NULL, NULL);
}
+
+void pa_device_port_set_latency_offset(pa_device_port *p, pa_usec_t offset) {
+ pa_assert(p);
+
+ p->latency_offset = offset;
+}
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 */
};
/* 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