mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-09 10:06:25 -05:00
modules: add pulse.latency to module-zeroconf-discover
To set latency to remote streams. Also add latency_msec argument to the pulseaudio module for this. See #2755
This commit is contained in:
parent
6f235f344f
commit
aed56719f2
2 changed files with 31 additions and 4 deletions
|
|
@ -54,7 +54,10 @@
|
|||
* audio to/from remote PulseAudio servers. It also works with
|
||||
* module-protocol-pulse.
|
||||
*
|
||||
* This module has no options.
|
||||
* ## Module Options
|
||||
*
|
||||
* - `pulse.latency`: the latency to end-to-end latency in milliseconds to
|
||||
* maintain (Default 200ms).
|
||||
*
|
||||
* ## Example configuration
|
||||
*
|
||||
|
|
@ -72,7 +75,7 @@
|
|||
PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
|
||||
#define PW_LOG_TOPIC_DEFAULT mod_topic
|
||||
|
||||
#define MODULE_USAGE " "
|
||||
#define MODULE_USAGE "pulse.latency=<latency in msec> "
|
||||
|
||||
static const struct spa_dict_item module_props[] = {
|
||||
{ PW_KEY_MODULE_AUTHOR, "Wim Taymans <wim.taymans@gmail.com>" },
|
||||
|
|
@ -348,6 +351,9 @@ static void resolver_cb(AvahiServiceResolver *r, AvahiIfIndex interface, AvahiPr
|
|||
_("%s on %s"), desc, fqdn);
|
||||
}
|
||||
|
||||
if ((str = pw_properties_get(impl->properties, "pulse.latency")) != NULL)
|
||||
pw_properties_set(props, "pulse.latency", str);
|
||||
|
||||
if ((f = open_memstream(&args, &size)) == NULL) {
|
||||
pw_log_error("Can't open memstream: %m");
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue