From 56f85c9fd82d5a3c49a0966c63b17fd209de8fc3 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 24 Jul 2024 14:40:10 +0200 Subject: [PATCH] audio: fix Linux compilation --- include/lol/private/audio/stream.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/lol/private/audio/stream.h b/include/lol/private/audio/stream.h index 676f0f16..33c021d0 100644 --- a/include/lol/private/audio/stream.h +++ b/include/lol/private/audio/stream.h @@ -352,14 +352,13 @@ public: { float dist = float(k) * F_PI / lanczos_lut_scale; float lanczos = 1.0f; - if (dist > 0.0f) lanczos = window_center * std::sinf(dist) * std::sinf(dist / window_center) / (dist * dist); + if (dist > 0.0f) lanczos = window_center * std::sin(dist) * std::sin(dist / window_center) / (dist * dist); ret[k] = lanczos; } return ret; }; static auto const lanczos_lut = build_lanczos(); - for (size_t n = 0; n < frames; ++n, m_pos += in_rate) {