Lines Matching defs:sink

41 #include <pulsecore/sink.h>
44 #include <pulsecore/sink-input.h>
150 { "list-sink-inputs", pa_cli_command_sink_inputs, "List sink inputs", 1 },
159 { "set-sink-volume", pa_cli_command_sink_volume, "Set the volume of a sink (args: index|name, volume)", 3},
161 { "set-sink-mute", pa_cli_command_sink_mute, "Set the mute switch of a sink (args: index|name, bool)", 3},
163 { "set-sink-input-volume", pa_cli_command_sink_input_volume, "Set the volume of a sink input (args: index, volume)", 3},
165 { "set-sink-input-mute", pa_cli_command_sink_input_mute, "Set the mute switch of a sink input (args: index, bool)", 3},
167 { "set-default-sink", pa_cli_command_sink_default, "Set the default sink (args: index|name)", 2},
170 { "set-sink-port", pa_cli_command_sink_port, "Change the port of a sink (args: index|name, port-name)", 3},
173 { "suspend-sink", pa_cli_command_suspend_sink, "Suspend sink (args: index|name, bool)", 3},
176 { "move-sink-input", pa_cli_command_move_sink_input, "Move sink input to another sink (args: index, sink)", 3},
178 { "update-sink-proplist", pa_cli_command_update_sink_proplist, "Update the properties of a sink (args: index|name, properties)", 3},
180 { "update-sink-input-proplist", pa_cli_command_update_sink_input_proplist, "Update the properties of a sink input (args: index, properties)", 3},
183 { "play-sample", pa_cli_command_scache_play, "Play a sample from the sample cache (args: name, sink|index)", 3},
189 { "kill-sink-input", pa_cli_command_kill_sink_input, "Kill a sink input (args: index)", 2},
197 { "play-file", pa_cli_command_play_file, "Play a sound file (args: filename, sink|index)", 3},
392 pa_strbuf_printf(buf, "Default sink name: %s\n"
535 pa_sink *sink;
545 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n");
564 if (!(sink = pa_namereg_get(c, n, PA_NAMEREG_SINK))) {
565 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
570 pa_sink_set_volume(sink, &cvolume, true, true);
587 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n");
612 pa_strbuf_puts(buf, "No sink input found with this index.\n");
617 pa_strbuf_puts(buf, "This sink input's volume can't be changed.\n");
721 pa_sink *sink;
730 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n");
744 if (!(sink = pa_namereg_get(c, n, PA_NAMEREG_SINK))) {
745 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
749 pa_sink_set_mute(sink, mute, true);
779 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
789 pa_sink *sink;
798 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n");
807 if (!(sink = pa_namereg_get(c, n, PA_NAMEREG_SINK))) {
808 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
817 pa_sink_update_proplist(sink, PA_UPDATE_REPLACE, p);
873 pa_strbuf_puts(buf, "You need to specify a sink input either by index.\n");
888 pa_strbuf_puts(buf, "No sink input found with this index.\n");
959 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n");
979 pa_strbuf_puts(buf, "No sink input found with this index.\n");
1037 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n");
1110 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n");
1120 pa_strbuf_puts(buf, "No sink input found by this index.\n");
1174 pa_sink *sink;
1183 pa_strbuf_puts(buf, "You need to specify a sample name and a sink name.\n");
1187 if (!(sink = pa_namereg_get(c, sink_name, PA_NAMEREG_SINK))) {
1188 pa_strbuf_puts(buf, "No sink by that name.\n");
1192 if (pa_scache_play_item(c, n, sink, PA_VOLUME_NORM, NULL, &idx) < 0) {
1197 pa_strbuf_printf(buf, "Playing on sink input #%i\n", idx);
1271 pa_sink *sink;
1279 pa_strbuf_puts(buf, "You need to specify a file name and a sink name.\n");
1283 if (!(sink = pa_namereg_get(c, sink_name, PA_NAMEREG_SINK))) {
1284 pa_strbuf_puts(buf, "No sink by that name.\n");
1288 if (pa_play_file(sink, fname, NULL) < 0) {
1322 pa_sink *sink;
1331 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n");
1341 pa_strbuf_puts(buf, "You need to specify a sink.\n");
1346 pa_strbuf_puts(buf, "No sink input found with this index.\n");
1350 if (!(sink = pa_namereg_get(c, k, PA_NAMEREG_SINK))) {
1351 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
1355 if (pa_sink_input_move_to(si, sink, true) < 0) {
1407 pa_sink *sink;
1416 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n");
1430 if (!(sink = pa_namereg_get(c, n, PA_NAMEREG_SINK))) {
1431 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
1435 pa_log_debug("%s of sink %s requested via CLI.", suspend ? "Suspending" : "Resuming", sink->name);
1437 if ((r = pa_sink_suspend(sink, suspend, PA_SUSPEND_USER)) < 0)
1438 pa_strbuf_printf(buf, "Failed to resume/suspend sink: %s\n", pa_strerror(r));
1684 pa_sink *sink;
1692 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n");
1701 if (!(sink = pa_namereg_get(c, n, PA_NAMEREG_SINK))) {
1702 pa_strbuf_puts(buf, "No sink found by this name or index.\n");
1706 if (pa_sink_set_port(sink, p, true) < 0) {
1707 pa_strbuf_printf(buf, "Failed to set sink port to '%s'.\n", p);
1835 pa_sink *sink;
1869 PA_IDXSET_FOREACH(sink, c->sinks, idx) {
1876 pa_strbuf_printf(buf, "set-sink-volume %s 0x%03x\n", sink->name, pa_cvolume_max(pa_sink_get_volume(sink, false)));
1877 pa_strbuf_printf(buf, "set-sink-mute %s %s\n", sink->name, pa_yes_no(pa_sink_get_mute(sink, false)));
1878 pa_strbuf_printf(buf, "suspend-sink %s %s\n", sink->name, pa_yes_no(sink->state == PA_SINK_SUSPENDED));
1912 pa_strbuf_printf(buf, "set-default-sink %s\n", c->default_sink->name);
1987 &i->sink->channel_map,