blob: d6149f72a78383b9efb18160cf4cc4b36e77770a [file] [log] [blame]
Per Ã…hgren0cbb58e2019-10-29 22:59:44 +01001/*
2 * Copyright (c) 2019 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 MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_
12#define MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_
13
14#include <cstddef>
15
16namespace webrtc {
17
18constexpr size_t kFftSize = 256;
19constexpr size_t kFftSizeBy2Plus1 = kFftSize / 2 + 1;
20constexpr size_t kNsFrameSize = 160;
21constexpr size_t kOverlapSize = kFftSize - kNsFrameSize;
22
23constexpr int kShortStartupPhaseBlocks = 50;
24constexpr int kLongStartupPhaseBlocks = 200;
25constexpr int kFeatureUpdateWindowSize = 500;
26
27constexpr float kLtrFeatureThr = 0.5f;
28constexpr float kBinSizeLrt = 0.1f;
29constexpr float kBinSizeSpecFlat = 0.05f;
30constexpr float kBinSizeSpecDiff = 0.1f;
31
32} // namespace webrtc
33
34#endif // MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_