From 935826f4f318a89a0a570f766deb54808a4f9683 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Sep 2004 23:08:39 +0000 Subject: make module-combine autoloadable clean up cli language introduce lazy sample cache git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@201 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/cli-text.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'polyp/cli-text.c') diff --git a/polyp/cli-text.c b/polyp/cli-text.c index 2a48d576..dbc14fda 100644 --- a/polyp/cli-text.c +++ b/polyp/cli-text.c @@ -228,13 +228,14 @@ char *pa_scache_list_to_string(struct pa_core *c) { l = (double) e->memchunk.length / pa_bytes_per_second(&e->sample_spec); pa_strbuf_printf( - s, " name: <%s>\n\tindex: <%i>\n\tsample_spec: <%s>\n\tlength: <%u>\n\tduration: <%0.1fs>\n\tvolume: <0x%04x>\n", + s, " name: <%s>\n\tindex: <%i>\n\tsample_spec: <%s>\n\tlength: <%u>\n\tduration: <%0.1fs>\n\tvolume: <0x%04x>\n\tauto unload: %s\n", e->name, e->index, ss, e->memchunk.length, l, - e->volume); + e->volume, + e->auto_unload ? "yes" : "no"); } } @@ -256,11 +257,19 @@ char *pa_autoload_list_to_string(struct pa_core *c) { while ((e = pa_hashmap_iterate(c->autoload_hashmap, &state))) { pa_strbuf_printf( - s, " name: <%s>\n\ttype: <%s>\n\tmodule_name: <%s>\n\targuments: <%s>\n", + s, " name: <%s>\n\ttype: <%s>\n", e->name, - e->type == PA_NAMEREG_SOURCE ? "source" : "sink", - e->module, - e->argument); + e->type == PA_NAMEREG_SOURCE ? "source" : (e->type == PA_NAMEREG_SINK ? "sink" : "sample")); + + if (e->type != PA_NAMEREG_SAMPLE) + pa_strbuf_printf( + s, "\tmodule_name: <%s>\n\targuments: <%s>\n", + e->module, + e->argument); + else + pa_strbuf_printf( + s, "\tfilename: <%s>\n", + e->filename); } } -- cgit