mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
allow setting the null sink description by a module parameter
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1206 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
bfa6604b1d
commit
8da9b94af6
1 changed files with 5 additions and 3 deletions
|
|
@ -53,7 +53,8 @@ PA_MODULE_USAGE(
|
|||
"channels=<number of channels> "
|
||||
"rate=<sample rate> "
|
||||
"sink_name=<name of sink>"
|
||||
"channel_map=<channel map>")
|
||||
"channel_map=<channel map>"
|
||||
"description=<description for the sink>")
|
||||
|
||||
#define DEFAULT_SINK_NAME "null"
|
||||
|
||||
|
|
@ -74,6 +75,7 @@ static const char* const valid_modargs[] = {
|
|||
"channels",
|
||||
"sink_name",
|
||||
"channel_map",
|
||||
"description",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
@ -141,7 +143,7 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
u->sink->get_latency = get_latency;
|
||||
u->sink->userdata = u;
|
||||
pa_sink_set_owner(u->sink, m);
|
||||
pa_sink_set_description(u->sink, "NULL sink");
|
||||
pa_sink_set_description(u->sink, pa_modargs_get_value(ma, "description", "NULL sink"));
|
||||
|
||||
u->n_bytes = 0;
|
||||
pa_gettimeofday(&u->start_time);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue