summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/Services/beattracker.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-16 23:58:44 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-16 23:58:44 +1000
commit1984458565462f0f7d54266021e7f1977bc4b302 (patch)
treecfa2c7cbd6630acc8caf4b8740d7446abd2f0cd3 /plugin/src/Caelestia/Services/beattracker.hpp
parentutilities/toggles: add dnd (diff)
downloadcaelestia-shell-1984458565462f0f7d54266021e7f1977bc4b302.tar.gz
caelestia-shell-1984458565462f0f7d54266021e7f1977bc4b302.tar.bz2
caelestia-shell-1984458565462f0f7d54266021e7f1977bc4b302.zip
plugin: fix crashes
Fixes #629
Diffstat (limited to 'plugin/src/Caelestia/Services/beattracker.hpp')
-rw-r--r--plugin/src/Caelestia/Services/beattracker.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugin/src/Caelestia/Services/beattracker.hpp b/plugin/src/Caelestia/Services/beattracker.hpp
index ab18373..365f3bc 100644
--- a/plugin/src/Caelestia/Services/beattracker.hpp
+++ b/plugin/src/Caelestia/Services/beattracker.hpp
@@ -1,6 +1,5 @@
#pragma once
-#include "audiocollector.hpp"
#include "audioprovider.hpp"
#include <aubio/aubio.h>
#include <qqmlintegration.h>
@@ -11,21 +10,19 @@ class BeatProcessor : public AudioProcessor {
Q_OBJECT
public:
- explicit BeatProcessor(AudioCollector* collector, QObject* parent = nullptr);
+ explicit BeatProcessor(QObject* parent = nullptr);
~BeatProcessor();
signals:
void beat(smpl_t bpm);
protected:
- void setCollector(AudioCollector* collector) override;
+ void process() override;
private:
aubio_tempo_t* m_tempo;
fvec_t* m_in;
fvec_t* m_out;
-
- void process() override;
};
class BeatTracker : public AudioProvider {