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:
Wim Taymans 2022-06-03 10:51:46 +02:00
parent fe1652e843
commit 87172fde06
4 changed files with 19 additions and 19 deletions

View file

@ -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 = {");

View file

@ -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 = {");