From 52b18c07a4208e87e3bcfb323d568d1e5fcfa35a Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 5 Oct 2023 17:12:20 +0300 Subject: [PATCH] Fix echo effect --- libs/audio/source/effect/echo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audio/source/effect/echo.cpp b/libs/audio/source/effect/echo.cpp index 26155c84..e34748d0 100644 --- a/libs/audio/source/effect/echo.cpp +++ b/libs/audio/source/effect/echo.cpp @@ -13,7 +13,7 @@ namespace psemek::audio { echo_impl(stream_ptr stream, duration delay, float gain) : stream_(std::move(stream)) - , buffer_(2 * std::max(1l, delay.samples()), 0.f) + , buffer_(std::max(2l, delay.samples()), 0.f) , gain_(gain) {}