mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
pacmd: Add functions to handle the latency offset
pacmd was extended so it can handle the new latency offset. A new function was added so we can set the latency also the list commands were extended to print the latency offset on the ports.
This commit is contained in:
parent
eebdda456b
commit
7688e64739
3 changed files with 52 additions and 2 deletions
|
|
@ -126,8 +126,9 @@ static void append_port_list(pa_strbuf *s, pa_hashmap *ports)
|
|||
pa_strbuf_puts(s, "\tports:\n");
|
||||
PA_HASHMAP_FOREACH(p, ports, state) {
|
||||
char *t = pa_proplist_to_string_sep(p->proplist, "\n\t\t\t\t");
|
||||
pa_strbuf_printf(s, "\t\t%s: %s (priority %u, available: %s)\n",
|
||||
p->name, p->description, p->priority, port_available_to_string(p->available));
|
||||
pa_strbuf_printf(s, "\t\t%s: %s (priority %u, latency offset %" PRId64 " usec, available: %s)\n",
|
||||
p->name, p->description, p->priority, p->latency_offset,
|
||||
port_available_to_string(p->available));
|
||||
pa_strbuf_printf(s, "\t\t\tproperties:\n\t\t\t\t%s\n", t);
|
||||
pa_xfree(t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue