FastLED 3.10.8
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_NO_EXCEPT = default;
12
13 virtual void update(shared_ptr<Context> context) FL_NO_EXCEPT = 0;
14 virtual void fireCallbacks() FL_NO_EXCEPT {}
15 virtual void setSampleRate(int) FL_NO_EXCEPT {}
16 virtual bool needsFFT() const FL_NO_EXCEPT { return false; }
17 virtual bool needsFFTHistory() const FL_NO_EXCEPT { return false; }
18 virtual const char* getName() const FL_NO_EXCEPT = 0;
19 virtual void reset() FL_NO_EXCEPT {}
20};
21
22} // namespace audio
23} // namespace fl
virtual bool needsFFTHistory() const FL_NO_EXCEPT
virtual ~Detector() FL_NO_EXCEPT=default
virtual const char * getName() const FL_NO_EXCEPT=0
virtual void fireCallbacks() FL_NO_EXCEPT
virtual void setSampleRate(int) FL_NO_EXCEPT
virtual void reset() FL_NO_EXCEPT
virtual bool needsFFT() const FL_NO_EXCEPT
virtual void update(shared_ptr< Context > context) FL_NO_EXCEPT=0
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
Base definition for an LED controller.
Definition crgb.hpp:179