summaryrefslogtreecommitdiff
path: root/src/drumgizmo.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-04-10 18:36:47 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-07-04 11:27:14 +0200
commitfe1986214251bcd110837b81ed2159d75c58f8e2 (patch)
treec38a0bdb27b877b900227827b98ca5e39709ff09 /src/drumgizmo.h
parenta638001e3249edf7264b5ee0f6d5280229aeb671 (diff)
Get rid of big stack allocation during resampler (re-)configuration.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r--src/drumgizmo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index f08c9f7..89c2960 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -107,5 +107,5 @@ protected:
std::array<ZRWrapper, NUM_CHANNELS> zita;
std::array<std::unique_ptr<sample_t>, NUM_CHANNELS> resampler_input_buffer;
double ratio = 1.0;
-
+ std::vector<sample_t> scratch_buffer;
};