ns_common.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  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. #ifndef MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_
  11. #define MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_
  12. #include <cstddef>
  13. namespace webrtc {
  14. constexpr size_t kFftSize = 256;
  15. constexpr size_t kFftSizeBy2Plus1 = kFftSize / 2 + 1;
  16. constexpr size_t kNsFrameSize = 160;
  17. constexpr size_t kOverlapSize = kFftSize - kNsFrameSize;
  18. constexpr int kShortStartupPhaseBlocks = 50;
  19. constexpr int kLongStartupPhaseBlocks = 200;
  20. constexpr int kFeatureUpdateWindowSize = 500;
  21. constexpr float kLtrFeatureThr = 0.5f;
  22. constexpr float kBinSizeLrt = 0.1f;
  23. constexpr float kBinSizeSpecFlat = 0.05f;
  24. constexpr float kBinSizeSpecDiff = 0.1f;
  25. } // namespace webrtc
  26. #endif // MODULES_AUDIO_PROCESSING_NS_NS_COMMON_H_