summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-07-22 09:31:50 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2024-07-22 09:31:50 +0200
commit019d478818950f7880d2c0f80d8fc8f963e9736b (patch)
tree898ad63d47aec30944574860fa7c448ee644bf26 /src
parentaab05ac13b6fe094bb0dc7c5e50c5a76250aa131 (diff)
Fix allocation of resampler_input_buffer invoking undefined behavior - thanks to John Auld for finding this.
Diffstat (limited to 'src')
-rw-r--r--src/drumgizmo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index 0ee51e6..a47898b 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -103,7 +103,7 @@ protected:
Random rand;
std::array<ZRWrapper, NUM_CHANNELS> zita;
- std::array<std::unique_ptr<sample_t>, NUM_CHANNELS> resampler_input_buffer;
+ std::array<std::unique_ptr<sample_t[]>, NUM_CHANNELS> resampler_input_buffer;
double ratio = 1.0;
std::vector<sample_t> scratch_buffer;
};