summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/audioprovider.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-07 18:21:31 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-07 18:21:31 +1000
commitad2b389e2331d6072da1e5919279e7f0f190555e (patch)
tree12ffb1add1559708421b5f64f0a00cae97e9fc00 /plugin/src/Caelestia/audioprovider.hpp
parentplugin: add cava provider (diff)
downloadcaelestia-shell-ad2b389e2331d6072da1e5919279e7f0f190555e.tar.gz
caelestia-shell-ad2b389e2331d6072da1e5919279e7f0f190555e.tar.bz2
caelestia-shell-ad2b389e2331d6072da1e5919279e7f0f190555e.zip
plugin/ap: cleaner chunk loading/accessing
Diffstat (limited to 'plugin/src/Caelestia/audioprovider.hpp')
-rw-r--r--plugin/src/Caelestia/audioprovider.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugin/src/Caelestia/audioprovider.hpp b/plugin/src/Caelestia/audioprovider.hpp
index 2acdb2d..44c6890 100644
--- a/plugin/src/Caelestia/audioprovider.hpp
+++ b/plugin/src/Caelestia/audioprovider.hpp
@@ -76,11 +76,8 @@ public:
[[nodiscard]] int sampleRate() const;
[[nodiscard]] int chunkSize() const;
- void withLock(std::function<void()> fn);
-
- [[nodiscard]] bool hasChunks() const;
[[nodiscard]] QVector<double> nextChunk();
- void loadChunk(QVector<double> chunk);
+ void loadChunk(const QVector<double>& chunk);
protected:
int m_sampleRate;