Mingw compilation fixes

This commit is contained in:
Nikita Lisitsa 2023-10-08 15:58:51 +03:00
parent f743201565
commit 5fa8e4a3a3
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ namespace psemek::audio
{ {
all_pass_impl(stream_ptr stream, duration delay, float gain) all_pass_impl(stream_ptr stream, duration delay, float gain)
: stream_(std::move(stream)) : stream_(std::move(stream))
, buffer_(2 * std::max(1l, delay.samples()), 0.f) , buffer_(std::max<std::size_t>(2, delay.samples()), 0.f)
, gain_(gain) , gain_(gain)
{} {}

View file

@ -13,7 +13,7 @@ namespace psemek::audio
{ {
echo_impl(stream_ptr stream, duration delay, float gain) echo_impl(stream_ptr stream, duration delay, float gain)
: stream_(std::move(stream)) : stream_(std::move(stream))
, buffer_(std::max(2l, delay.samples()), 0.f) , buffer_(std::max<std::size_t>(2, delay.samples()), 0.f)
, gain_(gain) , gain_(gain)
{} {}