pulse-server: handle no_remix flag

This commit is contained in:
Wim Taymans 2020-11-03 21:01:24 +01:00
parent 4f2b1c7684
commit 12cefd2461

View file

@ -1571,6 +1571,8 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui
stream->attr = attr; stream->attr = attr;
stream->is_underrun = true; stream->is_underrun = true;
if (no_remix)
pw_properties_set(props, PW_KEY_STREAM_DONT_REMIX, "true");
flags = 0; flags = 0;
if (no_move) if (no_move)
flags |= PW_STREAM_FLAG_DONT_RECONNECT; flags |= PW_STREAM_FLAG_DONT_RECONNECT;
@ -1789,6 +1791,8 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
if (peak_detect) if (peak_detect)
pw_properties_set(props, PW_KEY_STREAM_MONITOR, "true"); pw_properties_set(props, PW_KEY_STREAM_MONITOR, "true");
if (no_remix)
pw_properties_set(props, PW_KEY_STREAM_DONT_REMIX, "true");
flags = 0; flags = 0;
if (no_move) if (no_move)
flags |= PW_STREAM_FLAG_DONT_RECONNECT; flags |= PW_STREAM_FLAG_DONT_RECONNECT;