fix virtmic code for rohrkabel v1.2

This commit is contained in:
Malte Jürgens 2022-07-26 21:35:51 +02:00
parent 1199381803
commit 84c12a752e
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -70,12 +70,12 @@ void start(QString _target) {
<< "Link : " << target << ":" << port_id << " -> "; << "Link : " << target << ":" << port_id << " -> ";
if (port.info().props["audio.channel"] == "FL") { if (port.info().props["audio.channel"] == "FL") {
links.emplace(port_id, core.create_simple<pipewire::link_factory>( links.emplace(port_id, core.create<pipewire::link_factory>(
virt_fl->info().id, port_id)); {virt_fl->info().id, port_id}));
std::cout << "[virtmic] " << virt_fl->info().id << std::endl; std::cout << "[virtmic] " << virt_fl->info().id << std::endl;
} else { } else {
links.emplace(port_id, core.create_simple<pipewire::link_factory>( links.emplace(port_id, core.create<pipewire::link_factory>(
virt_fr->info().id, port_id)); {virt_fr->info().id, port_id}));
std::cout << "[virtmic] " << virt_fr->info().id << std::endl; std::cout << "[virtmic] " << virt_fr->info().id << std::endl;
} }
} }