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:
poljar 2012-06-22 20:55:55 +02:00 committed by Tanu Kaskinen
parent eebdda456b
commit 7688e64739
3 changed files with 52 additions and 2 deletions

View file

@ -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);
}