summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/service.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-08 21:10:30 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-08 21:10:30 +1000
commitd0fdbefbfb60994ad8d6cf3b7129dcdd556c1924 (patch)
tree5319ea868c554d470ab3c74d7ba4a28442fbeaff /plugin/src/Caelestia/service.hpp
parentdev: export cmake compile commands (diff)
downloadcaelestia-shell-d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924.tar.gz
caelestia-shell-d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924.tar.bz2
caelestia-shell-d0fdbefbfb60994ad8d6cf3b7129dcdd556c1924.zip
plugin/ap: fix collector
Actually read from speakers not mic
Diffstat (limited to 'plugin/src/Caelestia/service.hpp')
-rw-r--r--plugin/src/Caelestia/service.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/src/Caelestia/service.hpp b/plugin/src/Caelestia/service.hpp
index 861d715..40e9110 100644
--- a/plugin/src/Caelestia/service.hpp
+++ b/plugin/src/Caelestia/service.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <QMutex>
#include <QObject>
namespace caelestia {
@@ -12,7 +13,7 @@ class Service : public QObject {
public:
explicit Service(QObject* parent = nullptr);
- [[nodiscard]] int refCount() const;
+ [[nodiscard]] int refCount();
void ref();
void unref();
@@ -22,6 +23,7 @@ signals:
private:
int m_refCount;
+ QMutex m_mutex;
virtual void start() = 0;
virtual void stop() = 0;