/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #define _USE_MATH_DEFINES #include "common_audio/window_generator.h" #include <cmath> #include <complex> #include "rtc_base/checks.h" complex; namespace { // Modified Bessel function of order 0 for complex inputs. complex<float> I0(complex<float> x) { … } } // namespace namespace webrtc { void WindowGenerator::Hanning(int length, float* window) { … } void WindowGenerator::KaiserBesselDerived(float alpha, size_t length, float* window) { … } } // namespace webrtc