From ae251d8e575920142c56accb22b9a03cbef158c7 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 13 Jan 2018 15:00:49 -0500 Subject: [PATCH] Un-reverting last commit --- src/core/AudioInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/AudioInterface.cpp b/src/core/AudioInterface.cpp index d8125fa5..68b0ed33 100644 --- a/src/core/AudioInterface.cpp +++ b/src/core/AudioInterface.cpp @@ -39,6 +39,10 @@ struct AudioInterfaceIO : AudioIO { maxInputs = MAX_INPUTS; } + ~AudioInterfaceIO() { + closeStream(); + } + void processStream(const float *input, float *output, int length) override { if (numInputs > 0) { // TODO Do we need to wait on the input to be consumed here?