Browse Source

audio: fix Linux compilation

wip/interp
Sam Hocevar 5 months ago
parent
commit
56f85c9fd8
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      include/lol/private/audio/stream.h

+ 1
- 2
include/lol/private/audio/stream.h View File

@@ -352,14 +352,13 @@ public:
{ {
float dist = float(k) * F_PI / lanczos_lut_scale; float dist = float(k) * F_PI / lanczos_lut_scale;
float lanczos = 1.0f; 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; ret[k] = lanczos;
} }
return ret; return ret;
}; };


static auto const lanczos_lut = build_lanczos(); static auto const lanczos_lut = build_lanczos();


for (size_t n = 0; n < frames; ++n, m_pos += in_rate) for (size_t n = 0; n < frames; ++n, m_pos += in_rate)
{ {


Loading…
Cancel
Save