diff --git a/test/gen_adsr_envelope.cpp b/test/gen_adsr_envelope.cpp index e8d98e0a..ca489e7b 100755 --- a/test/gen_adsr_envelope.cpp +++ b/test/gen_adsr_envelope.cpp @@ -26,7 +26,8 @@ TEST_CASE("TEST_adsr_envelope") constexpr auto n_channels = 2; constexpr auto buffer_size = size * n_channels; - auto buff = std::array{}; // The output buffer + // Use vector to prevent stack overlow! + static auto buff = std::vector(buffer_size); // The output buffer auto env_cfg = q::adsr_envelope_gen::config {