Ignore mics
This commit is contained in:
parent
03f52e221f
commit
1fc8436618
|
@ -86,6 +86,10 @@ void start(QString _target) {
|
||||||
|
|
||||||
auto &parent = nodes.at(parent_id);
|
auto &parent = nodes.at(parent_id);
|
||||||
std::string name = getTarget(parent.props);
|
std::string name = getTarget(parent.props);
|
||||||
|
if (parent.props["media.class"] == "Audio/Source" ||
|
||||||
|
parent.props["media.class"] == "Audio/Source/Voice")
|
||||||
|
continue;
|
||||||
|
|
||||||
if (name == target ||
|
if (name == target ||
|
||||||
(target == "[All Desktop Audio]" &&
|
(target == "[All Desktop Audio]" &&
|
||||||
!EXCLUDE_TARGETS.contains(QString::fromStdString(name)))) {
|
!EXCLUDE_TARGETS.contains(QString::fromStdString(name)))) {
|
||||||
|
@ -165,6 +169,11 @@ void start(QString _target) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
reg_events.on<pipewire::registry_event::node_state>(
|
||||||
|
[&](const pipewire::registry_event::node_state &event) {
|
||||||
|
link(target, core);
|
||||||
|
});
|
||||||
|
|
||||||
reg_events.on<pipewire::registry_event::global_removed>(
|
reg_events.on<pipewire::registry_event::global_removed>(
|
||||||
[&](const std::uint32_t id) {
|
[&](const std::uint32_t id) {
|
||||||
if (nodes.count(id)) {
|
if (nodes.count(id)) {
|
||||||
|
|
Loading…
Reference in New Issue