diff --git a/core/src/dsp/routing.h b/core/src/dsp/routing.h index 3cd4fd65..8d8f5fad 100644 --- a/core/src/dsp/routing.h +++ b/core/src/dsp/routing.h @@ -70,6 +70,11 @@ namespace dsp { Reshaper(stream* in, int keep, int skip) { init(in, keep, skip); } + // NOTE: For some reason, the base class destrcutor doesn't get called.... this is a temporary fix I guess + ~Reshaper() { + generic_block>::stop(); + } + void init(stream* in, int keep, int skip) { _in = in; _keep = keep; @@ -114,7 +119,7 @@ namespace dsp { stream out; private: - void doStart() { + void doStart() override { workThread = std::thread(&Reshaper::loop, this); bufferWorkerThread = std::thread(&Reshaper::bufferWorker, this); } @@ -123,7 +128,7 @@ namespace dsp { while (run() >= 0); } - void doStop() { + void doStop() override { _in->stopReader(); ringBuf.stopReader(); out.stopWriter();