Newer
Older
music / app / src / main / cpp / effects / Processable.cpp
#include "Processable.h"

float *Processable::render(uint32_t sampleCount) {
    if (sampleCount > bufferSize) {
        bufferSize = sampleCount;
        if (buffer) {
            delete buffer;
        }
        buffer = new float[sampleCount];
    }
    doRender(sampleCount);
    return buffer;
}