| 342 | } |
| 343 | |
| 344 | void PipeWireAudioBridge::unloadModules() |
| 345 | { |
| 346 | for (auto& rx : m_rx) { |
| 347 | if (rx.moduleIndex > 0) { |
| 348 | runPactl({"unload-module", QString::number(rx.moduleIndex)}); |
| 349 | rx.moduleIndex = 0; |
| 350 | } |
| 351 | } |
| 352 | if (m_tx.moduleIndex > 0) { |
| 353 | runPactl({"unload-module", QString::number(m_tx.moduleIndex)}); |
| 354 | m_tx.moduleIndex = 0; |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | // ── Audio I/O ──────────────────────────────────────────────────────────────── |
| 359 |
nothing calls this directly
no test coverage detected