Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PipeWire
pipewire
Commits
115875dc
Commit
115875dc
authored
Jan 29, 2022
by
Wim Taymans
Browse files
pulse-server: add more properties
Add device.class property
parent
78ff44b9
Pipeline
#496383
passed with stages
in 3 minutes and 43 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/modules/module-protocol-pulse/modules/module-ladspa-sink.c
View file @
115875dc
...
...
@@ -212,6 +212,8 @@ struct module *create_module_ladspa_sink(struct impl *impl, const char *argument
}
if
(
pw_properties_get
(
capture_props
,
PW_KEY_MEDIA_CLASS
)
==
NULL
)
pw_properties_set
(
capture_props
,
PW_KEY_MEDIA_CLASS
,
"Audio/Sink"
);
if
(
pw_properties_get
(
capture_props
,
PW_KEY_DEVICE_CLASS
)
==
NULL
)
pw_properties_set
(
capture_props
,
PW_KEY_DEVICE_CLASS
,
"filter"
);
if
((
str
=
pw_properties_get
(
props
,
"master"
))
!=
NULL
||
(
str
=
pw_properties_get
(
props
,
"sink_master"
))
!=
NULL
)
{
...
...
src/modules/module-protocol-pulse/modules/module-ladspa-source.c
View file @
115875dc
...
...
@@ -212,6 +212,8 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
}
if
(
pw_properties_get
(
playback_props
,
PW_KEY_MEDIA_CLASS
)
==
NULL
)
pw_properties_set
(
playback_props
,
PW_KEY_MEDIA_CLASS
,
"Audio/Source"
);
if
(
pw_properties_get
(
playback_props
,
PW_KEY_DEVICE_CLASS
)
==
NULL
)
pw_properties_set
(
playback_props
,
PW_KEY_DEVICE_CLASS
,
"filter"
);
if
((
str
=
pw_properties_get
(
props
,
"master"
))
!=
NULL
||
(
str
=
pw_properties_get
(
props
,
"source_master"
))
!=
NULL
)
{
...
...
src/modules/module-protocol-pulse/modules/module-remap-sink.c
View file @
115875dc
...
...
@@ -176,7 +176,10 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
module_args_add_props
(
capture_props
,
str
);
pw_properties_set
(
props
,
"sink_properties"
,
NULL
);
}
pw_properties_set
(
capture_props
,
PW_KEY_MEDIA_CLASS
,
"Audio/Sink"
);
if
(
pw_properties_get
(
capture_props
,
PW_KEY_MEDIA_CLASS
)
==
NULL
)
pw_properties_set
(
capture_props
,
PW_KEY_MEDIA_CLASS
,
"Audio/Sink"
);
if
(
pw_properties_get
(
capture_props
,
PW_KEY_DEVICE_CLASS
)
==
NULL
)
pw_properties_set
(
capture_props
,
PW_KEY_DEVICE_CLASS
,
"filter"
);
if
(
pw_properties_get
(
capture_props
,
PW_KEY_NODE_DESCRIPTION
)
==
NULL
)
{
str
=
pw_properties_get
(
props
,
"master"
);
...
...
src/modules/module-protocol-pulse/modules/module-remap-source.c
View file @
115875dc
...
...
@@ -176,7 +176,10 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
module_args_add_props
(
playback_props
,
str
);
pw_properties_set
(
props
,
"source_properties"
,
NULL
);
}
pw_properties_set
(
playback_props
,
PW_KEY_MEDIA_CLASS
,
"Audio/Source"
);
if
(
pw_properties_get
(
playback_props
,
PW_KEY_MEDIA_CLASS
)
==
NULL
)
pw_properties_set
(
playback_props
,
PW_KEY_MEDIA_CLASS
,
"Audio/Source"
);
if
(
pw_properties_get
(
playback_props
,
PW_KEY_DEVICE_CLASS
)
==
NULL
)
pw_properties_set
(
playback_props
,
PW_KEY_DEVICE_CLASS
,
"filter"
);
if
(
pw_properties_get
(
playback_props
,
PW_KEY_NODE_DESCRIPTION
)
==
NULL
)
{
str
=
pw_properties_get
(
props
,
"master"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment