MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / runPactl

Function runPactl

src/core/PipeWireAudioBridge.cpp:213–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211// ── Module loading via pactl ─────────────────────────────────────────────────
212
213static uint32_t runPactl(const QStringList& args)
214{
215 QProcess proc;
216 proc.start("pactl", args);
217 if (!proc.waitForFinished(5000)) {
218 qCWarning(lcDax) << "PipeWireAudioBridge: pactl timed out:" << args;
219 return 0;
220 }
221 if (proc.exitCode() != 0) {
222 qCWarning(lcDax) << "PipeWireAudioBridge: pactl failed:" << proc.readAllStandardError().trimmed();
223 return 0;
224 }
225 // pactl load-module returns the module index
226 bool ok = false;
227 uint32_t idx = proc.readAllStandardOutput().trimmed().toUInt(&ok);
228 return ok ? idx : 0;
229}
230
231bool PipeWireAudioBridge::loadPipeSource(int index)
232{

Callers 3

loadPipeSourceMethod · 0.85
loadPipeSinkMethod · 0.85
unloadModulesMethod · 0.85

Calls 1

startMethod · 0.45

Tested by

no test coverage detected