Fix echo effect

This commit is contained in:
Nikita Lisitsa 2023-10-05 17:12:20 +03:00
parent 51a5bcd3bc
commit 52b18c07a4

View file

@ -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)
{}