Lines Matching defs:source
42 #include <pulsecore/source.h>
45 #include <pulsecore/source-output.h>
151 { "list-source-outputs", pa_cli_command_source_outputs, "List source outputs", 1 },
160 { "set-source-volume", pa_cli_command_source_volume, "Set the volume of a source (args: index|name, volume)", 3},
162 { "set-source-mute", pa_cli_command_source_mute, "Set the mute switch of a source (args: index|name, bool)", 3},
164 { "set-source-output-volume",pa_cli_command_source_output_volume,"Set the volume of a source output (args: index, volume)", 3},
166 { "set-source-output-mute", pa_cli_command_source_output_mute, "Set the mute switch of a source output (args: index, bool)", 3},
168 { "set-default-source", pa_cli_command_source_default, "Set the default source (args: index|name)", 2},
171 { "set-source-port", pa_cli_command_source_port, "Change the port of a source (args: index|name, port-name)", 3},
174 { "suspend-source", pa_cli_command_suspend_source, "Suspend source (args: index|name, bool)", 3},
177 { "move-source-output", pa_cli_command_move_source_output, "Move source output to another source (args: index, source)", 3},
179 { "update-source-proplist", pa_cli_command_update_source_proplist, "Update the properties of a source (args: index|name, properties)", 3},
181 { "update-source-output-proplist", pa_cli_command_update_source_output_proplist, "Update the properties of a source output (args: index, properties)", 3},
190 { "kill-source-output", pa_cli_command_kill_source_output, "Kill a source output (args: index)", 2},
193 { "set-log-meta", pa_cli_command_log_meta, "Show source code location in log messages (args: bool)", 2},
393 "Default source name: %s\n",
628 pa_source *source;
638 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n");
657 if (!(source = pa_namereg_get(c, n, PA_NAMEREG_SOURCE))) {
658 pa_strbuf_puts(buf, "No source found by this name or index.\n");
663 pa_source_set_volume(source, &cvolume, true, true);
680 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n");
705 pa_strbuf_puts(buf, "No source output found with this index.\n");
710 pa_strbuf_puts(buf, "This source output's volume can't be changed.\n");
755 pa_source *source;
764 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n");
778 if (!(source = pa_namereg_get(c, n, PA_NAMEREG_SOURCE))) {
783 pa_source_set_mute(source, mute, true);
826 pa_source *source;
835 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n");
844 if (!(source = pa_namereg_get(c, n, PA_NAMEREG_SOURCE))) {
845 pa_strbuf_puts(buf, "No source found by this name or index.\n");
854 pa_source_update_proplist(source, PA_UPDATE_REPLACE, p);
916 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n");
931 pa_strbuf_puts(buf, "No source output found with this index.\n");
999 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n");
1019 pa_strbuf_puts(buf, "No source output found with this index.\n");
1059 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n");
1139 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n");
1149 pa_strbuf_puts(buf, "No source output found by this index.\n");
1365 pa_source *source;
1374 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n");
1384 pa_strbuf_puts(buf, "You need to specify a source.\n");
1389 pa_strbuf_puts(buf, "No source output found with this index.\n");
1393 if (!(source = pa_namereg_get(c, k, PA_NAMEREG_SOURCE))) {
1394 pa_strbuf_puts(buf, "No source found by this name or index.\n");
1398 if (pa_source_output_move_to(so, source, true) < 0) {
1445 pa_source *source;
1454 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n");
1468 if (!(source = pa_namereg_get(c, n, PA_NAMEREG_SOURCE))) {
1469 pa_strbuf_puts(buf, "No source found by this name or index.\n");
1473 pa_log_debug("%s of source %s requested via CLI.", suspend ? "Suspending" : "Resuming", source->name);
1475 if ((r = pa_source_suspend(source, suspend, PA_SUSPEND_USER)) < 0)
1476 pa_strbuf_printf(buf, "Failed to resume/suspend source: %s\n", pa_strerror(r));
1716 pa_source *source;
1724 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n");
1733 if (!(source = pa_namereg_get(c, n, PA_NAMEREG_SOURCE))) {
1734 pa_strbuf_puts(buf, "No source found by this name or index.\n");
1738 if (pa_source_set_port(source, p, true) < 0) {
1739 pa_strbuf_printf(buf, "Failed to set source port to '%s'.\n", p);
1836 pa_source *source;
1882 PA_IDXSET_FOREACH(source, c->sources, idx) {
1889 pa_strbuf_printf(buf, "set-source-volume %s 0x%03x\n", source->name, pa_cvolume_max(pa_source_get_volume(source, false)));
1890 pa_strbuf_printf(buf, "set-source-mute %s %s\n", source->name, pa_yes_no(pa_source_get_mute(source, false)));
1891 pa_strbuf_printf(buf, "suspend-source %s %s\n", source->name, pa_yes_no(source->state == PA_SOURCE_SUSPENDED));
1919 pa_strbuf_printf(buf, "set-default-source %s\n", c->default_source->name);
2039 &o->source->channel_map,