2004-07-16 19:56:36 +00:00
|
|
|
/***
|
2006-06-19 21:53:48 +00:00
|
|
|
This file is part of PulseAudio.
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2007-02-13 15:35:19 +00:00
|
|
|
Copyright 2004-2006 Lennart Poettering
|
|
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is free software; you can redistribute it and/or modify
|
2004-11-14 14:58:54 +00:00
|
|
|
it under the terms of the GNU Lesser General Public License as published
|
2004-07-16 19:56:36 +00:00
|
|
|
by the Free Software Foundation; either version 2 of the License,
|
|
|
|
|
or (at your option) any later version.
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is distributed in the hope that it will be useful, but
|
2004-07-16 19:56:36 +00:00
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
General Public License for more details.
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-11-14 14:58:54 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2006-06-19 21:53:48 +00:00
|
|
|
along with PulseAudio; if not, write to the Free Software
|
2004-07-16 19:56:36 +00:00
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
|
USA.
|
|
|
|
|
***/
|
|
|
|
|
|
2004-07-16 19:16:42 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
#include <config.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-07-20 01:07:06 +00:00
|
|
|
#include <string.h>
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
#include <pulse/volume.h>
|
|
|
|
|
#include <pulse/xmalloc.h>
|
2008-05-15 23:34:41 +00:00
|
|
|
#include <pulse/timeval.h>
|
2006-05-17 16:34:18 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
#include <pulsecore/module.h>
|
|
|
|
|
#include <pulsecore/client.h>
|
|
|
|
|
#include <pulsecore/sink.h>
|
|
|
|
|
#include <pulsecore/source.h>
|
|
|
|
|
#include <pulsecore/sink-input.h>
|
|
|
|
|
#include <pulsecore/source-output.h>
|
|
|
|
|
#include <pulsecore/strbuf.h>
|
|
|
|
|
#include <pulsecore/sample-util.h>
|
|
|
|
|
#include <pulsecore/core-scache.h>
|
2007-10-28 19:13:50 +00:00
|
|
|
#include <pulsecore/macro.h>
|
2008-05-15 23:34:41 +00:00
|
|
|
#include <pulsecore/core-util.h>
|
2006-02-17 12:10:58 +00:00
|
|
|
|
|
|
|
|
#include "cli-text.h"
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_module_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_module *m;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(c);
|
2004-07-11 01:09:46 +00:00
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_strbuf_printf(s, "%u module(s) loaded.\n", pa_idxset_size(c->modules));
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2007-03-06 15:47:11 +00:00
|
|
|
for (m = pa_idxset_first(c->modules, &idx); m; m = pa_idxset_next(c->modules, &idx)) {
|
2009-01-19 22:02:28 +01:00
|
|
|
char *t;
|
|
|
|
|
|
2007-03-06 15:47:11 +00:00
|
|
|
pa_strbuf_printf(s, " index: %u\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tname: <%s>\n"
|
|
|
|
|
"\targument: <%s>\n"
|
|
|
|
|
"\tused: %i\n"
|
2009-01-15 20:07:13 +01:00
|
|
|
"\tload once: %s\n",
|
|
|
|
|
m->index,
|
|
|
|
|
m->name,
|
|
|
|
|
pa_strempty(m->argument),
|
2009-01-15 20:49:12 +01:00
|
|
|
pa_module_get_n_used(m),
|
2009-01-15 20:07:13 +01:00
|
|
|
pa_yes_no(m->load_once));
|
2009-01-19 22:02:28 +01:00
|
|
|
|
|
|
|
|
t = pa_proplist_to_string_sep(m->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
|
|
|
|
pa_xfree(t);
|
2007-03-06 15:47:11 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_client_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_client *client;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(c);
|
2004-07-11 01:09:46 +00:00
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_strbuf_printf(s, "%u client(s) logged in.\n", pa_idxset_size(c->clients));
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
for (client = pa_idxset_first(c->clients, &idx); client; client = pa_idxset_next(c->clients, &idx)) {
|
2008-05-15 23:34:41 +00:00
|
|
|
char *t;
|
|
|
|
|
pa_strbuf_printf(
|
|
|
|
|
s,
|
|
|
|
|
" index: %u\n"
|
|
|
|
|
"\tdriver: <%s>\n",
|
|
|
|
|
client->index,
|
|
|
|
|
client->driver);
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2008-05-15 23:34:41 +00:00
|
|
|
if (client->module)
|
|
|
|
|
pa_strbuf_printf(s, "\towner module: %u\n", client->module->index);
|
|
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
t = pa_proplist_to_string_sep(client->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_xfree(t);
|
2004-07-11 01:09:46 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
|
|
|
|
|
2009-01-15 18:52:11 +01:00
|
|
|
char *pa_card_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_card *card;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
|
|
|
|
pa_assert(c);
|
|
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
pa_strbuf_printf(s, "%u card(s) available.\n", pa_idxset_size(c->cards));
|
2009-01-15 18:52:11 +01:00
|
|
|
|
|
|
|
|
for (card = pa_idxset_first(c->cards, &idx); card; card = pa_idxset_next(c->cards, &idx)) {
|
|
|
|
|
char *t;
|
|
|
|
|
pa_strbuf_printf(
|
|
|
|
|
s,
|
|
|
|
|
" index: %u\n"
|
|
|
|
|
"\tname: <%s>\n"
|
|
|
|
|
"\tdriver: <%s>\n",
|
|
|
|
|
card->index,
|
|
|
|
|
card->name,
|
|
|
|
|
card->driver);
|
|
|
|
|
|
|
|
|
|
if (card->module)
|
|
|
|
|
pa_strbuf_printf(s, "\towner module: %u\n", card->module->index);
|
|
|
|
|
|
2009-01-17 02:03:59 +01:00
|
|
|
t = pa_proplist_to_string_sep(card->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2009-01-15 18:52:11 +01:00
|
|
|
pa_xfree(t);
|
2009-01-17 02:03:59 +01:00
|
|
|
|
|
|
|
|
if (card->profiles) {
|
|
|
|
|
pa_card_profile *p;
|
|
|
|
|
void *state = NULL;
|
|
|
|
|
|
|
|
|
|
pa_strbuf_puts(
|
|
|
|
|
s,
|
|
|
|
|
"\tprofiles:\n");
|
|
|
|
|
|
|
|
|
|
while ((p = pa_hashmap_iterate(card->profiles, &state, NULL)))
|
|
|
|
|
pa_strbuf_printf(s, "\t\t%s: %s\n", p->name, p->description);
|
|
|
|
|
}
|
|
|
|
|
|
2009-01-15 18:52:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_sink_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_sink *sink;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2007-10-28 19:13:50 +00:00
|
|
|
static const char* const state_table[] = {
|
2008-05-15 23:34:41 +00:00
|
|
|
[PA_SINK_INIT] = "INIT",
|
2007-10-28 19:13:50 +00:00
|
|
|
[PA_SINK_RUNNING] = "RUNNING",
|
|
|
|
|
[PA_SINK_SUSPENDED] = "SUSPENDED",
|
|
|
|
|
[PA_SINK_IDLE] = "IDLE",
|
|
|
|
|
[PA_SINK_UNLINKED] = "UNLINKED"
|
|
|
|
|
};
|
|
|
|
|
pa_assert(c);
|
2004-07-11 01:09:46 +00:00
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_strbuf_printf(s, "%u sink(s) available.\n", pa_idxset_size(c->sinks));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
for (sink = pa_idxset_first(c->sinks, &idx); sink; sink = pa_idxset_next(c->sinks, &idx)) {
|
2008-12-24 00:49:43 +01:00
|
|
|
char ss[PA_SAMPLE_SPEC_SNPRINT_MAX],
|
|
|
|
|
cv[PA_CVOLUME_SNPRINT_MAX],
|
|
|
|
|
cvdb[PA_SW_CVOLUME_SNPRINT_DB_MAX],
|
|
|
|
|
v[PA_VOLUME_SNPRINT_MAX],
|
|
|
|
|
vdb[PA_SW_VOLUME_SNPRINT_DB_MAX],
|
|
|
|
|
cm[PA_CHANNEL_MAP_SNPRINT_MAX], *t;
|
2008-06-20 22:32:41 +02:00
|
|
|
pa_usec_t min_latency, max_latency;
|
|
|
|
|
|
|
|
|
|
pa_sink_get_latency_range(sink, &min_latency, &max_latency);
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
pa_strbuf_printf(
|
|
|
|
|
s,
|
2006-01-27 16:25:31 +00:00
|
|
|
" %c index: %u\n"
|
|
|
|
|
"\tname: <%s>\n"
|
|
|
|
|
"\tdriver: <%s>\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tflags: %s%s%s%s%s%s\n"
|
2007-10-28 19:13:50 +00:00
|
|
|
"\tstate: %s\n"
|
2008-12-24 00:49:43 +01:00
|
|
|
"\tvolume: %s%s%s\n"
|
2009-01-19 21:59:57 +01:00
|
|
|
"\t balance %-20.2f\n"
|
2008-12-24 00:49:43 +01:00
|
|
|
"\tbase volume: %s%s%s\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tmuted: %s\n"
|
|
|
|
|
"\tcurrent latency: %0.2f ms\n"
|
|
|
|
|
"\tconfigured latency: %0.2f ms; range is %0.2f .. %0.2f ms\n"
|
2008-06-20 22:32:41 +02:00
|
|
|
"\tmax request: %lu KiB\n"
|
|
|
|
|
"\tmax rewind: %lu KiB\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tmonitor source: %u\n"
|
|
|
|
|
"\tsample spec: %s\n"
|
|
|
|
|
"\tchannel map: %s\n"
|
|
|
|
|
"\tused by: %u\n"
|
|
|
|
|
"\tlinked by: %u\n",
|
2004-08-10 13:00:12 +00:00
|
|
|
c->default_sink_name && !strcmp(sink->name, c->default_sink_name) ? '*' : ' ',
|
2007-10-28 19:13:50 +00:00
|
|
|
sink->index,
|
|
|
|
|
sink->name,
|
2006-01-27 16:25:31 +00:00
|
|
|
sink->driver,
|
2007-10-28 19:13:50 +00:00
|
|
|
sink->flags & PA_SINK_HARDWARE ? "HARDWARE " : "",
|
2007-10-29 21:23:08 +00:00
|
|
|
sink->flags & PA_SINK_NETWORK ? "NETWORK " : "",
|
2008-05-15 23:34:41 +00:00
|
|
|
sink->flags & PA_SINK_HW_MUTE_CTRL ? "HW_MUTE_CTRL " : "",
|
|
|
|
|
sink->flags & PA_SINK_HW_VOLUME_CTRL ? "HW_VOLUME_CTRL " : "",
|
|
|
|
|
sink->flags & PA_SINK_DECIBEL_VOLUME ? "DECIBEL_VOLUME " : "",
|
|
|
|
|
sink->flags & PA_SINK_LATENCY ? "LATENCY " : "",
|
2007-10-28 19:13:50 +00:00
|
|
|
state_table[pa_sink_get_state(sink)],
|
2008-08-13 13:59:50 +02:00
|
|
|
pa_cvolume_snprint(cv, sizeof(cv), pa_sink_get_volume(sink, FALSE)),
|
2008-12-24 00:49:43 +01:00
|
|
|
sink->flags & PA_SINK_DECIBEL_VOLUME ? "\n\t " : "",
|
|
|
|
|
sink->flags & PA_SINK_DECIBEL_VOLUME ? pa_sw_cvolume_snprint_dB(cvdb, sizeof(cvdb), pa_sink_get_volume(sink, FALSE)) : "",
|
2009-01-19 21:59:57 +01:00
|
|
|
pa_cvolume_get_balance(&sink->channel_map, pa_sink_get_volume(sink, FALSE)),
|
2008-12-24 00:49:43 +01:00
|
|
|
pa_volume_snprint(v, sizeof(v), sink->base_volume),
|
|
|
|
|
sink->flags & PA_SINK_DECIBEL_VOLUME ? "\n\t " : "",
|
|
|
|
|
sink->flags & PA_SINK_DECIBEL_VOLUME ? pa_sw_volume_snprint_dB(vdb, sizeof(vdb), sink->base_volume) : "",
|
2008-08-13 13:59:50 +02:00
|
|
|
pa_yes_no(pa_sink_get_mute(sink, FALSE)),
|
2008-08-19 22:39:54 +02:00
|
|
|
(double) pa_sink_get_latency(sink) / (double) PA_USEC_PER_MSEC,
|
|
|
|
|
(double) pa_sink_get_requested_latency(sink) / (double) PA_USEC_PER_MSEC,
|
|
|
|
|
(double) min_latency / PA_USEC_PER_MSEC,
|
|
|
|
|
(double) max_latency / PA_USEC_PER_MSEC,
|
2008-06-20 22:32:41 +02:00
|
|
|
(unsigned long) pa_sink_get_max_request(sink) / 1024,
|
|
|
|
|
(unsigned long) pa_sink_get_max_rewind(sink) / 1024,
|
2006-08-12 17:06:39 +00:00
|
|
|
sink->monitor_source ? sink->monitor_source->index : PA_INVALID_INDEX,
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_sample_spec_snprint(ss, sizeof(ss), &sink->sample_spec),
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_channel_map_snprint(cm, sizeof(cm), &sink->channel_map),
|
|
|
|
|
pa_sink_used_by(sink),
|
|
|
|
|
pa_sink_linked_by(sink));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2009-01-15 18:52:11 +01:00
|
|
|
if (sink->card)
|
|
|
|
|
pa_strbuf_printf(s, "\tcard: %u <%s>\n", sink->card->index, sink->card->name);
|
2007-10-28 19:13:50 +00:00
|
|
|
if (sink->module)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\tmodule: %u\n", sink->module->index);
|
|
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
t = pa_proplist_to_string_sep(sink->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_xfree(t);
|
2004-07-11 01:09:46 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_source_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_source *source;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2007-10-28 19:13:50 +00:00
|
|
|
static const char* const state_table[] = {
|
2008-05-15 23:34:41 +00:00
|
|
|
[PA_SOURCE_INIT] = "INIT",
|
2007-10-28 19:13:50 +00:00
|
|
|
[PA_SOURCE_RUNNING] = "RUNNING",
|
|
|
|
|
[PA_SOURCE_SUSPENDED] = "SUSPENDED",
|
|
|
|
|
[PA_SOURCE_IDLE] = "IDLE",
|
|
|
|
|
[PA_SOURCE_UNLINKED] = "UNLINKED"
|
|
|
|
|
};
|
|
|
|
|
pa_assert(c);
|
2004-07-11 01:09:46 +00:00
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_strbuf_printf(s, "%u source(s) available.\n", pa_idxset_size(c->sources));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
for (source = pa_idxset_first(c->sources, &idx); source; source = pa_idxset_next(c->sources, &idx)) {
|
2008-12-24 00:49:43 +01:00
|
|
|
char ss[PA_SAMPLE_SPEC_SNPRINT_MAX],
|
|
|
|
|
cv[PA_CVOLUME_SNPRINT_MAX],
|
|
|
|
|
cvdb[PA_SW_CVOLUME_SNPRINT_DB_MAX],
|
|
|
|
|
v[PA_VOLUME_SNPRINT_MAX],
|
|
|
|
|
vdb[PA_SW_VOLUME_SNPRINT_DB_MAX],
|
|
|
|
|
cm[PA_CHANNEL_MAP_SNPRINT_MAX], *t;
|
2008-06-20 22:32:41 +02:00
|
|
|
pa_usec_t min_latency, max_latency;
|
|
|
|
|
|
|
|
|
|
pa_source_get_latency_range(source, &min_latency, &max_latency);
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_strbuf_printf(
|
|
|
|
|
s,
|
|
|
|
|
" %c index: %u\n"
|
|
|
|
|
"\tname: <%s>\n"
|
|
|
|
|
"\tdriver: <%s>\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tflags: %s%s%s%s%s%s\n"
|
2007-10-28 19:13:50 +00:00
|
|
|
"\tstate: %s\n"
|
2008-12-24 00:49:43 +01:00
|
|
|
"\tvolume: %s%s%s\n"
|
2009-01-19 21:59:57 +01:00
|
|
|
"\t balance %-20.2f\n"
|
2008-12-24 00:49:43 +01:00
|
|
|
"\tbase volume: %s%s%s\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tmuted: %s\n"
|
|
|
|
|
"\tcurrent latency: %0.2f ms\n"
|
|
|
|
|
"\tconfigured latency: %0.2f ms; range is %0.2f .. %0.2f ms\n"
|
2008-06-20 22:32:41 +02:00
|
|
|
"\tmax rewind: %lu KiB\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tsample spec: %s\n"
|
|
|
|
|
"\tchannel map: %s\n"
|
|
|
|
|
"\tused by: %u\n"
|
|
|
|
|
"\tlinked by: %u\n",
|
2006-01-27 16:25:31 +00:00
|
|
|
c->default_source_name && !strcmp(source->name, c->default_source_name) ? '*' : ' ',
|
|
|
|
|
source->index,
|
|
|
|
|
source->name,
|
|
|
|
|
source->driver,
|
2007-10-28 19:13:50 +00:00
|
|
|
source->flags & PA_SOURCE_HARDWARE ? "HARDWARE " : "",
|
2007-10-29 21:23:08 +00:00
|
|
|
source->flags & PA_SOURCE_NETWORK ? "NETWORK " : "",
|
2008-05-15 23:34:41 +00:00
|
|
|
source->flags & PA_SOURCE_HW_MUTE_CTRL ? "HW_MUTE_CTRL " : "",
|
|
|
|
|
source->flags & PA_SOURCE_HW_VOLUME_CTRL ? "HW_VOLUME_CTRL " : "",
|
|
|
|
|
source->flags & PA_SOURCE_DECIBEL_VOLUME ? "DECIBEL_VOLUME " : "",
|
|
|
|
|
source->flags & PA_SOURCE_LATENCY ? "LATENCY " : "",
|
2007-10-28 19:13:50 +00:00
|
|
|
state_table[pa_source_get_state(source)],
|
2008-08-13 13:59:50 +02:00
|
|
|
pa_cvolume_snprint(cv, sizeof(cv), pa_source_get_volume(source, FALSE)),
|
2008-12-24 00:49:43 +01:00
|
|
|
source->flags & PA_SOURCE_DECIBEL_VOLUME ? "\n\t " : "",
|
|
|
|
|
source->flags & PA_SOURCE_DECIBEL_VOLUME ? pa_sw_cvolume_snprint_dB(cvdb, sizeof(cvdb), pa_source_get_volume(source, FALSE)) : "",
|
2009-01-19 21:59:57 +01:00
|
|
|
pa_cvolume_get_balance(&source->channel_map, pa_source_get_volume(source, FALSE)),
|
2008-12-24 00:49:43 +01:00
|
|
|
pa_volume_snprint(v, sizeof(v), source->base_volume),
|
|
|
|
|
source->flags & PA_SOURCE_DECIBEL_VOLUME ? "\n\t " : "",
|
|
|
|
|
source->flags & PA_SOURCE_DECIBEL_VOLUME ? pa_sw_volume_snprint_dB(vdb, sizeof(vdb), source->base_volume) : "",
|
2008-08-13 13:59:50 +02:00
|
|
|
pa_yes_no(pa_source_get_mute(source, FALSE)),
|
2008-05-15 23:34:41 +00:00
|
|
|
(double) pa_source_get_latency(source) / PA_USEC_PER_MSEC,
|
2008-08-19 22:39:54 +02:00
|
|
|
(double) pa_source_get_requested_latency(source) / PA_USEC_PER_MSEC,
|
|
|
|
|
(double) min_latency / PA_USEC_PER_MSEC,
|
|
|
|
|
(double) max_latency / PA_USEC_PER_MSEC,
|
2008-06-20 22:32:41 +02:00
|
|
|
(unsigned long) pa_source_get_max_rewind(source) / 1024,
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_sample_spec_snprint(ss, sizeof(ss), &source->sample_spec),
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_channel_map_snprint(cm, sizeof(cm), &source->channel_map),
|
|
|
|
|
pa_source_used_by(source),
|
|
|
|
|
pa_source_linked_by(source));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2007-01-04 13:43:45 +00:00
|
|
|
if (source->monitor_of)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\tmonitor_of: %u\n", source->monitor_of->index);
|
2009-01-15 18:52:11 +01:00
|
|
|
if (source->card)
|
|
|
|
|
pa_strbuf_printf(s, "\tcard: %u <%s>\n", source->card->index, source->card->name);
|
2007-10-28 19:13:50 +00:00
|
|
|
if (source->module)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\tmodule: %u\n", source->module->index);
|
|
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
t = pa_proplist_to_string_sep(source->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_xfree(t);
|
2004-07-11 01:09:46 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_source_output_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_source_output *o;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2004-09-26 17:02:26 +00:00
|
|
|
static const char* const state_table[] = {
|
2008-05-15 23:34:41 +00:00
|
|
|
[PA_SOURCE_OUTPUT_INIT] = "INIT",
|
2007-10-28 19:13:50 +00:00
|
|
|
[PA_SOURCE_OUTPUT_RUNNING] = "RUNNING",
|
|
|
|
|
[PA_SOURCE_OUTPUT_CORKED] = "CORKED",
|
|
|
|
|
[PA_SOURCE_OUTPUT_UNLINKED] = "UNLINKED"
|
2004-09-26 17:02:26 +00:00
|
|
|
};
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(c);
|
2004-07-11 01:09:46 +00:00
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_strbuf_printf(s, "%u source outputs(s) available.\n", pa_idxset_size(c->source_outputs));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
for (o = pa_idxset_first(c->source_outputs, &idx); o; o = pa_idxset_next(c->source_outputs, &idx)) {
|
2008-05-15 23:34:41 +00:00
|
|
|
char ss[PA_SAMPLE_SPEC_SNPRINT_MAX], cm[PA_CHANNEL_MAP_SNPRINT_MAX], *t, clt[28];
|
|
|
|
|
pa_usec_t cl;
|
|
|
|
|
|
|
|
|
|
if ((cl = pa_source_output_get_requested_latency(o)) == (pa_usec_t) -1)
|
|
|
|
|
pa_snprintf(clt, sizeof(clt), "n/a");
|
|
|
|
|
else
|
|
|
|
|
pa_snprintf(clt, sizeof(clt), "%0.2f ms", (double) cl / PA_USEC_PER_MSEC);
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(o->source);
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
pa_strbuf_printf(
|
2006-01-27 16:25:31 +00:00
|
|
|
s,
|
|
|
|
|
" index: %u\n"
|
|
|
|
|
"\tdriver: <%s>\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tflags: %s%s%s%s%s%s%s%s\n"
|
2006-01-27 16:25:31 +00:00
|
|
|
"\tstate: %s\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tsource: %u <%s>\n"
|
|
|
|
|
"\tcurrent latency: %0.2f ms\n"
|
|
|
|
|
"\trequested latency: %s\n"
|
|
|
|
|
"\tsample spec: %s\n"
|
|
|
|
|
"\tchannel map: %s\n"
|
2006-01-27 16:25:31 +00:00
|
|
|
"\tresample method: %s\n",
|
2004-07-11 01:09:46 +00:00
|
|
|
o->index,
|
2006-01-27 16:25:31 +00:00
|
|
|
o->driver,
|
2007-10-28 19:13:50 +00:00
|
|
|
o->flags & PA_SOURCE_OUTPUT_VARIABLE_RATE ? "VARIABLE_RATE " : "",
|
|
|
|
|
o->flags & PA_SOURCE_OUTPUT_DONT_MOVE ? "DONT_MOVE " : "",
|
2008-05-15 23:34:41 +00:00
|
|
|
o->flags & PA_SOURCE_OUTPUT_START_CORKED ? "START_CORKED " : "",
|
2007-11-21 01:30:40 +00:00
|
|
|
o->flags & PA_SOURCE_OUTPUT_NO_REMAP ? "NO_REMAP " : "",
|
|
|
|
|
o->flags & PA_SOURCE_OUTPUT_NO_REMIX ? "NO_REMIX " : "",
|
|
|
|
|
o->flags & PA_SOURCE_OUTPUT_FIX_FORMAT ? "FIX_FORMAT " : "",
|
|
|
|
|
o->flags & PA_SOURCE_OUTPUT_FIX_RATE ? "FIX_RATE " : "",
|
|
|
|
|
o->flags & PA_SOURCE_OUTPUT_FIX_CHANNELS ? "FIX_CHANNELS " : "",
|
2007-10-28 19:13:50 +00:00
|
|
|
state_table[pa_source_output_get_state(o)],
|
2004-09-26 17:02:26 +00:00
|
|
|
o->source->index, o->source->name,
|
2008-06-20 22:32:41 +02:00
|
|
|
(double) pa_source_output_get_latency(o, NULL) / PA_USEC_PER_MSEC,
|
2008-05-15 23:34:41 +00:00
|
|
|
clt,
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_sample_spec_snprint(ss, sizeof(ss), &o->sample_spec),
|
|
|
|
|
pa_channel_map_snprint(cm, sizeof(cm), &o->channel_map),
|
|
|
|
|
pa_resample_method_to_string(pa_source_output_get_resample_method(o)));
|
2006-08-13 19:55:17 +00:00
|
|
|
if (o->module)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\towner module: %u\n", o->module->index);
|
2004-07-11 01:09:46 +00:00
|
|
|
if (o->client)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\tclient: %u <%s>\n", o->client->index, pa_strnull(pa_proplist_gets(o->client->proplist, PA_PROP_APPLICATION_NAME)));
|
2008-06-13 21:56:19 +00:00
|
|
|
if (o->direct_on_input)
|
|
|
|
|
pa_strbuf_printf(s, "\tdirect on input: %u\n", o->direct_on_input->index);
|
2008-05-15 23:34:41 +00:00
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
t = pa_proplist_to_string_sep(o->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_xfree(t);
|
2004-07-11 01:09:46 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_sink_input_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
|
|
|
|
pa_sink_input *i;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2004-09-26 17:02:26 +00:00
|
|
|
static const char* const state_table[] = {
|
2008-05-15 23:34:41 +00:00
|
|
|
[PA_SINK_INPUT_INIT] = "INIT",
|
2007-10-28 19:13:50 +00:00
|
|
|
[PA_SINK_INPUT_RUNNING] = "RUNNING",
|
|
|
|
|
[PA_SINK_INPUT_DRAINED] = "DRAINED",
|
|
|
|
|
[PA_SINK_INPUT_CORKED] = "CORKED",
|
|
|
|
|
[PA_SINK_INPUT_UNLINKED] = "UNLINKED"
|
2004-09-26 17:02:26 +00:00
|
|
|
};
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(c);
|
2004-07-11 01:09:46 +00:00
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_strbuf_printf(s, "%u sink input(s) available.\n", pa_idxset_size(c->sink_inputs));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
for (i = pa_idxset_first(c->sink_inputs, &idx); i; i = pa_idxset_next(c->sink_inputs, &idx)) {
|
2009-01-19 21:59:57 +01:00
|
|
|
char ss[PA_SAMPLE_SPEC_SNPRINT_MAX], cvdb[PA_SW_CVOLUME_SNPRINT_DB_MAX], cv[PA_CVOLUME_SNPRINT_MAX], cm[PA_CHANNEL_MAP_SNPRINT_MAX], *t, clt[28];
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_usec_t cl;
|
|
|
|
|
|
|
|
|
|
if ((cl = pa_sink_input_get_requested_latency(i)) == (pa_usec_t) -1)
|
|
|
|
|
pa_snprintf(clt, sizeof(clt), "n/a");
|
|
|
|
|
else
|
|
|
|
|
pa_snprintf(clt, sizeof(clt), "%0.2f ms", (double) cl / PA_USEC_PER_MSEC);
|
2004-11-20 16:23:53 +00:00
|
|
|
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(i->sink);
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
pa_strbuf_printf(
|
2006-01-27 16:25:31 +00:00
|
|
|
s,
|
|
|
|
|
" index: %u\n"
|
|
|
|
|
"\tdriver: <%s>\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tflags: %s%s%s%s%s%s%s%s\n"
|
2006-01-27 16:25:31 +00:00
|
|
|
"\tstate: %s\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tsink: %u <%s>\n"
|
|
|
|
|
"\tvolume: %s\n"
|
2009-01-19 21:59:57 +01:00
|
|
|
"\t %s\n"
|
|
|
|
|
"\t balance %-20.2f\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tmuted: %s\n"
|
|
|
|
|
"\tcurrent latency: %0.2f ms\n"
|
|
|
|
|
"\trequested latency: %s\n"
|
|
|
|
|
"\tsample spec: %s\n"
|
|
|
|
|
"\tchannel map: %s\n"
|
2006-01-27 16:25:31 +00:00
|
|
|
"\tresample method: %s\n",
|
2004-07-11 01:09:46 +00:00
|
|
|
i->index,
|
2006-01-27 16:25:31 +00:00
|
|
|
i->driver,
|
2007-10-28 19:13:50 +00:00
|
|
|
i->flags & PA_SINK_INPUT_VARIABLE_RATE ? "VARIABLE_RATE " : "",
|
|
|
|
|
i->flags & PA_SINK_INPUT_DONT_MOVE ? "DONT_MOVE " : "",
|
2008-05-15 23:34:41 +00:00
|
|
|
i->flags & PA_SINK_INPUT_START_CORKED ? "START_CORKED " : "",
|
2007-11-21 01:30:40 +00:00
|
|
|
i->flags & PA_SINK_INPUT_NO_REMAP ? "NO_REMAP " : "",
|
|
|
|
|
i->flags & PA_SINK_INPUT_NO_REMIX ? "NO_REMIX " : "",
|
|
|
|
|
i->flags & PA_SINK_INPUT_FIX_FORMAT ? "FIX_FORMAT " : "",
|
|
|
|
|
i->flags & PA_SINK_INPUT_FIX_RATE ? "FIX_RATE " : "",
|
|
|
|
|
i->flags & PA_SINK_INPUT_FIX_CHANNELS ? "FIX_CHANNELS " : "",
|
2007-10-28 19:13:50 +00:00
|
|
|
state_table[pa_sink_input_get_state(i)],
|
2004-09-26 17:02:26 +00:00
|
|
|
i->sink->index, i->sink->name,
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_cvolume_snprint(cv, sizeof(cv), pa_sink_input_get_volume(i)),
|
2009-01-19 21:59:57 +01:00
|
|
|
pa_sw_cvolume_snprint_dB(cvdb, sizeof(cvdb), pa_sink_input_get_volume(i)),
|
|
|
|
|
pa_cvolume_get_balance(&i->channel_map, pa_sink_input_get_volume(i)),
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_yes_no(pa_sink_input_get_mute(i)),
|
2008-06-20 22:32:41 +02:00
|
|
|
(double) pa_sink_input_get_latency(i, NULL) / PA_USEC_PER_MSEC,
|
2008-05-15 23:34:41 +00:00
|
|
|
clt,
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_sample_spec_snprint(ss, sizeof(ss), &i->sample_spec),
|
|
|
|
|
pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map),
|
|
|
|
|
pa_resample_method_to_string(pa_sink_input_get_resample_method(i)));
|
2004-07-11 01:09:46 +00:00
|
|
|
|
2006-08-13 16:19:56 +00:00
|
|
|
if (i->module)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\tmodule: %u\n", i->module->index);
|
2004-07-11 01:09:46 +00:00
|
|
|
if (i->client)
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_strbuf_printf(s, "\tclient: %u <%s>\n", i->client->index, pa_strnull(pa_proplist_gets(i->client->proplist, PA_PROP_APPLICATION_NAME)));
|
|
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
t = pa_proplist_to_string_sep(i->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_xfree(t);
|
2004-07-11 01:09:46 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-11 01:09:46 +00:00
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
2004-07-20 01:07:06 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_scache_list_to_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
2007-10-28 19:13:50 +00:00
|
|
|
pa_assert(c);
|
2004-07-20 01:07:06 +00:00
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
pa_strbuf_printf(s, "%u cache entrie(s) available.\n", c->scache ? pa_idxset_size(c->scache) : 0);
|
2004-07-20 01:07:06 +00:00
|
|
|
|
2004-08-19 23:14:59 +00:00
|
|
|
if (c->scache) {
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_scache_entry *e;
|
|
|
|
|
uint32_t idx = PA_IDXSET_INVALID;
|
2004-07-20 01:07:06 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
for (e = pa_idxset_first(c->scache, &idx); e; e = pa_idxset_next(c->scache, &idx)) {
|
2004-09-15 14:05:28 +00:00
|
|
|
double l = 0;
|
2008-05-15 23:34:41 +00:00
|
|
|
char ss[PA_SAMPLE_SPEC_SNPRINT_MAX] = "n/a", cv[PA_CVOLUME_SNPRINT_MAX], cm[PA_CHANNEL_MAP_SNPRINT_MAX] = "n/a", *t;
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-09-15 14:05:28 +00:00
|
|
|
if (e->memchunk.memblock) {
|
|
|
|
|
pa_sample_spec_snprint(ss, sizeof(ss), &e->sample_spec);
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_channel_map_snprint(cm, sizeof(cm), &e->channel_map);
|
2008-08-19 22:39:54 +02:00
|
|
|
l = (double) e->memchunk.length / (double) pa_bytes_per_second(&e->sample_spec);
|
2004-09-15 14:05:28 +00:00
|
|
|
}
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2004-07-20 01:07:06 +00:00
|
|
|
pa_strbuf_printf(
|
2006-01-27 16:25:31 +00:00
|
|
|
s,
|
|
|
|
|
" name: <%s>\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tindex: %u\n"
|
|
|
|
|
"\tsample spec: %s\n"
|
|
|
|
|
"\tchannel map: %s\n"
|
|
|
|
|
"\tlength: %lu\n"
|
|
|
|
|
"\tduration: %0.1f s\n"
|
|
|
|
|
"\tvolume: %s\n"
|
2006-01-27 16:25:31 +00:00
|
|
|
"\tlazy: %s\n"
|
2008-05-15 23:34:41 +00:00
|
|
|
"\tfilename: <%s>\n",
|
2004-07-20 01:07:06 +00:00
|
|
|
e->name,
|
|
|
|
|
e->index,
|
|
|
|
|
ss,
|
2006-01-27 16:25:31 +00:00
|
|
|
cm,
|
2006-03-31 08:54:24 +00:00
|
|
|
(long unsigned)(e->memchunk.memblock ? e->memchunk.length : 0),
|
2004-08-03 19:26:56 +00:00
|
|
|
l,
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_cvolume_snprint(cv, sizeof(cv), &e->volume),
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_yes_no(e->lazy),
|
2004-09-15 14:05:28 +00:00
|
|
|
e->filename ? e->filename : "n/a");
|
2008-05-15 23:34:41 +00:00
|
|
|
|
2009-01-17 02:09:02 +01:00
|
|
|
t = pa_proplist_to_string_sep(e->proplist, "\n\t\t");
|
|
|
|
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
2008-05-15 23:34:41 +00:00
|
|
|
pa_xfree(t);
|
2004-07-20 01:07:06 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|
2004-08-04 16:39:30 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
char *pa_full_status_string(pa_core *c) {
|
|
|
|
|
pa_strbuf *s;
|
2005-01-12 18:51:38 +00:00
|
|
|
int i;
|
|
|
|
|
|
|
|
|
|
s = pa_strbuf_new();
|
|
|
|
|
|
2009-01-15 20:07:13 +01:00
|
|
|
for (i = 0; i < 8; i++) {
|
2005-01-12 18:51:38 +00:00
|
|
|
char *t = NULL;
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2005-01-12 18:51:38 +00:00
|
|
|
switch (i) {
|
2007-01-04 13:43:45 +00:00
|
|
|
case 0:
|
2005-01-12 18:51:38 +00:00
|
|
|
t = pa_sink_list_to_string(c);
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
t = pa_source_list_to_string(c);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
t = pa_sink_input_list_to_string(c);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
t = pa_source_output_list_to_string(c);
|
|
|
|
|
break;
|
2007-01-04 13:43:45 +00:00
|
|
|
case 4:
|
2005-01-12 18:51:38 +00:00
|
|
|
t = pa_client_list_to_string(c);
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
2009-01-15 18:52:11 +01:00
|
|
|
t = pa_card_list_to_string(c);
|
2005-01-12 18:51:38 +00:00
|
|
|
break;
|
|
|
|
|
case 6:
|
2009-01-15 18:52:11 +01:00
|
|
|
t = pa_module_list_to_string(c);
|
2005-01-12 18:51:38 +00:00
|
|
|
break;
|
|
|
|
|
case 7:
|
2009-01-15 18:52:11 +01:00
|
|
|
t = pa_scache_list_to_string(c);
|
|
|
|
|
break;
|
2005-01-12 18:51:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pa_strbuf_puts(s, t);
|
|
|
|
|
pa_xfree(t);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return pa_strbuf_tostring_free(s);
|
|
|
|
|
}
|