FastLED 3.9.15
Loading...
Searching...
No Matches
audio_detector.h
Go to the documentation of this file.
1#pragma once
2#include "fl/stl/noexcept.h"
3
4namespace fl {
5namespace audio {
6
7class Context;
8
9class Detector {
10public:
11 virtual ~Detector() FL_NOEXCEPT = default;
12
13 virtual void update(shared_ptr<Context> context) FL_NOEXCEPT = 0;
14 virtual void fireCallbacks() FL_NOEXCEPT {}
15 virtual void setSampleRate(int) FL_NOEXCEPT {}
16 virtual bool needsFFT() const FL_NOEXCEPT { return false; }
17 virtual bool needsFFTHistory() const FL_NOEXCEPT { return false; }
18 virtual const char* getName() const FL_NOEXCEPT = 0;
19 virtual void reset() FL_NOEXCEPT {}
20};
21
22} // namespace audio
23} // namespace fl
virtual bool needsFFTHistory() const FL_NOEXCEPT
virtual void update(shared_ptr< Context > context) FL_NOEXCEPT=0
virtual void reset() FL_NOEXCEPT
virtual void fireCallbacks() FL_NOEXCEPT
virtual const char * getName() const FL_NOEXCEPT=0
virtual void setSampleRate(int) FL_NOEXCEPT
virtual ~Detector() FL_NOEXCEPT=default
virtual bool needsFFT() const FL_NOEXCEPT
Base definition for an LED controller.
Definition crgb.hpp:179
#define FL_NOEXCEPT