forked from quickshell/quickshell
service/pipewire: set device node volumes with device object
Fixes discrepancies between pulse and qs volumes, and volumes not persisting across reboot or vt switches.
This commit is contained in:
parent
b40d4147e0
commit
c60871a7fb
9 changed files with 380 additions and 74 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <qloggingcategory.h>
|
||||
#include <qobject.h>
|
||||
#include <qsocketnotifier.h>
|
||||
#include <qtmetamacros.h>
|
||||
#include <spa/utils/defs.h>
|
||||
#include <spa/utils/hook.h>
|
||||
|
||||
|
@ -68,11 +69,12 @@ bool PwCore::isValid() const {
|
|||
return this->core != nullptr;
|
||||
}
|
||||
|
||||
void PwCore::poll() const {
|
||||
void PwCore::poll() {
|
||||
qCDebug(logLoop) << "Pipewire event loop received new events, iterating.";
|
||||
// Spin pw event loop.
|
||||
pw_loop_iterate(this->loop, 0);
|
||||
qCDebug(logLoop) << "Done iterating pipewire event loop.";
|
||||
emit this->polled();
|
||||
}
|
||||
|
||||
SpaHook::SpaHook() { // NOLINT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue