blob: 81ea733aa49c7ac769a72d424f2356a59f4d9190 [file] [log] [blame]
henrike@webrtc.org9ee75e92013-12-11 21:42:44 +00001/*
2 * Copyright (c) 2013 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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef MODULES_AUDIO_DEVICE_ANDROID_AUDIO_COMMON_H_
12#define MODULES_AUDIO_DEVICE_ANDROID_AUDIO_COMMON_H_
henrike@webrtc.org9ee75e92013-12-11 21:42:44 +000013
14namespace webrtc {
15
Peter Kastingdce40cf2015-08-24 14:52:23 -070016const int kDefaultSampleRate = 44100;
Peter Kastingdce40cf2015-08-24 14:52:23 -070017// Delay estimates for the two different supported modes. These values are based
18// on real-time round-trip delay estimates on a large set of devices and they
19// are lower bounds since the filter length is 128 ms, so the AEC works for
20// delays in the range [50, ~170] ms and [150, ~270] ms. Note that, in most
21// cases, the lowest delay estimate will not be utilized since devices that
22// support low-latency output audio often supports HW AEC as well.
23const int kLowLatencyModeDelayEstimateInMilliseconds = 50;
24const int kHighLatencyModeDelayEstimateInMilliseconds = 150;
henrike@webrtc.org9ee75e92013-12-11 21:42:44 +000025
26} // namespace webrtc
27
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020028#endif // MODULES_AUDIO_DEVICE_ANDROID_AUDIO_COMMON_H_