mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
modules: align tunnel.mode
Source for a source, sink for a sink. We use capture and playback for streams that link to a source/sink respectively.
This commit is contained in:
parent
fe1652e843
commit
87172fde06
4 changed files with 19 additions and 19 deletions
|
|
@ -81,7 +81,7 @@ static int module_tunnel_sink_load(struct client *client, struct module *module)
|
|||
fprintf(f, "{");
|
||||
pw_properties_serialize_dict(f, &module->props->dict, 0);
|
||||
fprintf(f, " pulse.server.address = \"%s\" ", server);
|
||||
fprintf(f, " tunnel.mode = playback ");
|
||||
fprintf(f, " tunnel.mode = sink ");
|
||||
if (data->latency_msec > 0)
|
||||
fprintf(f, " pulse.latency = %u ", data->latency_msec);
|
||||
fprintf(f, " stream.props = {");
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ static int module_tunnel_source_load(struct client *client, struct module *modul
|
|||
fprintf(f, "{");
|
||||
pw_properties_serialize_dict(f, &module->props->dict, 0);
|
||||
fprintf(f, " pulse.server.address = \"%s\" ", server);
|
||||
fprintf(f, " tunnel.mode = capture ");
|
||||
fprintf(f, " tunnel.mode = source ");
|
||||
if (data->latency_msec > 0)
|
||||
fprintf(f, " pulse.latency = %u ", data->latency_msec);
|
||||
fprintf(f, " stream.props = {");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue