diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-22 09:31:50 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-22 09:31:50 +0200 |
commit | 019d478818950f7880d2c0f80d8fc8f963e9736b (patch) | |
tree | 898ad63d47aec30944574860fa7c448ee644bf26 /src | |
parent | aab05ac13b6fe094bb0dc7c5e50c5a76250aa131 (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.h | 2 |
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; }; |