Newer
Older
music / app / src / main / cpp / effects / Effect.h
@lukas lukas on 26 Aug 2022 330 bytes add low pass filter effect
  1. #ifndef MUSIC_EFFECT_H
  2. #define MUSIC_EFFECT_H
  3.  
  4. #include <cstdint>
  5. #include "Processable.h"
  6. #include "../AudioHost.h"
  7.  
  8. class Effect : public Processable {
  9. public:
  10. float parameter1, frequency;
  11. float *input;
  12. AudioHost *host;
  13.  
  14. virtual void doRender(uint32_t sampleCount) = 0;
  15.  
  16. virtual void update() = 0;
  17. };
  18.  
  19. #endif