Revert "fix(pulse): check if loopback exists"

This reverts commit 3bf85e60609adda30c0c326d24883a5529edd891.
This commit is contained in:
D3SOX 2022-05-27 18:46:15 +02:00
parent 32e3231d60
commit 0e5e64376c
No known key found for this signature in database
GPG Key ID: 39EC1673FC37B048

View File

@ -296,10 +296,7 @@ namespace Soundux::Objects
{ {
if (!defaultSource.empty()) if (!defaultSource.empty())
{ {
if (loopBack) await(PulseApi::context_unload_module(context, *loopBack, nullptr, nullptr));
{
await(PulseApi::context_unload_module(context, *loopBack, nullptr, nullptr));
}
await(PulseApi::context_load_module( await(PulseApi::context_load_module(
context, "module-loopback", ("rate=44100 source=" + defaultSource + " sink=soundux_sink").c_str(), context, "module-loopback", ("rate=44100 source=" + defaultSource + " sink=soundux_sink").c_str(),