Newer
Older
music / app / src / main / cpp / effects / Processable.cpp
  1. #include "Processable.h"
  2.  
  3. float *Processable::render(uint32_t sampleCount) {
  4. if (sampleCount > bufferSize) {
  5. bufferSize = sampleCount;
  6. if (buffer) {
  7. delete buffer;
  8. }
  9. buffer = new float[sampleCount];
  10. }
  11. doRender(sampleCount);
  12. return buffer;
  13. }