blob: ee0acada5200d9b3933c5c09d72993e66ce14203 [file] [log] [blame]
andrew@webrtc.org325cff02014-10-01 17:42:18 +00001/*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_COMMON_AUDIO_WINDOW_GENERATOR_H_
12#define WEBRTC_COMMON_AUDIO_WINDOW_GENERATOR_H_
13
14#include "webrtc/base/constructormagic.h"
15
16namespace webrtc {
17
18// Helper class with generators for various signal transform windows.
19class WindowGenerator {
20 public:
21 static void Hanning(int length, float* window);
22 static void KaiserBesselDerived(float alpha, int length, float* window);
23
24 private:
25 DISALLOW_IMPLICIT_CONSTRUCTORS(WindowGenerator);
26};
27
28} // namespace webrtc
29
30#endif // WEBRTC_COMMON_AUDIO_WINDOW_GENERATOR_H_
31