From 5fa8e4a3a3b7d1d39562fa733af96558e182d776 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 8 Oct 2023 15:58:51 +0300 Subject: [PATCH] Mingw compilation fixes --- libs/audio/source/effect/all_pass.cpp | 2 +- libs/audio/source/effect/echo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/audio/source/effect/all_pass.cpp b/libs/audio/source/effect/all_pass.cpp index c93edf05..4accaf9d 100644 --- a/libs/audio/source/effect/all_pass.cpp +++ b/libs/audio/source/effect/all_pass.cpp @@ -13,7 +13,7 @@ namespace psemek::audio { all_pass_impl(stream_ptr stream, duration delay, float gain) : stream_(std::move(stream)) - , buffer_(2 * std::max(1l, delay.samples()), 0.f) + , buffer_(std::max(2, delay.samples()), 0.f) , gain_(gain) {} diff --git a/libs/audio/source/effect/echo.cpp b/libs/audio/source/effect/echo.cpp index e34748d0..7886743b 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_(std::max(2l, delay.samples()), 0.f) + , buffer_(std::max(2, delay.samples()), 0.f) , gain_(gain) {}