Newer
Older
music / app / src / main / cpp / effects / Processable.h
  1. #ifndef MUSIC_PROCESSABLE_H
  2. #define MUSIC_PROCESSABLE_H
  3.  
  4.  
  5. #include <cstdint>
  6.  
  7. class Processable {
  8. protected:
  9. float *buffer = nullptr;
  10. uint32_t bufferSize = 0;
  11. public:
  12. float *render(uint32_t sampleCount);
  13.  
  14. virtual void doRender(uint32_t sampleCount) = 0;
  15. };
  16.  
  17.  
  18. #endif