mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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.
This commit is contained in:
parent
56ce2c67c2
commit
bc03487896
2 changed files with 10 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ pa_device_port *pa_device_port_new(pa_core *c, const char *name, const char *des
|
|||
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;
|
||||
|
|
@ -112,3 +113,9 @@ void pa_device_port_hashmap_free(pa_hashmap *h) {
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue