summaryrefslogtreecommitdiffstats
path: root/src/sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-07-07 00:22:46 +0000
committerLennart Poettering <lennart@poettering.net>2004-07-07 00:22:46 +0000
commite8d1185c4221fef9d712c1f375d8e592721b6943 (patch)
tree1fa6e0c9fb8543520f6223cc6fa23604c5cbccde /src/sink.c
parentf8cbde54dab2783e2c6ba699dfaee9ef51b1e098 (diff)
draining ind native protocol
fixes in callback code on object destruction simple protocol git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@52 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/sink.c')
-rw-r--r--src/sink.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sink.c b/src/sink.c
index 79bf1778..4852edcc 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -274,8 +274,18 @@ char *pa_sink_list_to_string(struct pa_core *c) {
default_sink = pa_sink_get_default(c);
for (sink = pa_idxset_first(c->sinks, &index); sink; sink = pa_idxset_next(c->sinks, &index)) {
+ char ss[PA_SAMPLE_SNPRINT_MAX_LENGTH];
+ pa_sample_snprint(ss, sizeof(ss), &sink->sample_spec);
assert(sink->monitor_source);
- pa_strbuf_printf(s, " %c index: %u, name: <%s>, volume: <0x%04x>, latency: <%u usec>, monitor_source: <%u>\n", sink == default_sink ? '*' : ' ', sink->index, sink->name, (unsigned) sink->volume, pa_sink_get_latency(sink), sink->monitor_source->index);
+ pa_strbuf_printf(
+ s,
+ " %c index: %u\n\tname: <%s>\n\tvolume: <0x%04x>\n\tlatency: <%u usec>\n\tmonitor_source: <%u>\n\tsample_spec: <%s>\n",
+ sink == default_sink ? '*' : ' ',
+ sink->index, sink->name,
+ (unsigned) sink->volume,
+ pa_sink_get_latency(sink),
+ sink->monitor_source->index,
+ ss);
}
return pa_strbuf_tostring_free(s);