OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ |
12 #define WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ | 12 #define WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ |
13 | 13 |
14 #include "webrtc/common_types.h" | |
15 | |
16 namespace webrtc { | 14 namespace webrtc { |
17 | 15 |
18 class AudioProcessing; | 16 class AudioProcessing; |
19 class AudioDeviceModule; | 17 class AudioDeviceModule; |
20 | 18 |
| 19 enum EcModes { |
| 20 kEcConference, // Conferencing default (aggressive AEC). |
| 21 kEcAecm, // AEC mobile. |
| 22 }; |
| 23 |
| 24 struct AgcConfig { |
| 25 unsigned short targetLeveldBOv; |
| 26 unsigned short digitalCompressionGaindB; |
| 27 bool limiterEnable; |
| 28 }; |
| 29 |
21 namespace apm_helpers { | 30 namespace apm_helpers { |
22 | 31 |
23 AgcConfig GetAgcConfig(AudioProcessing* apm); | 32 AgcConfig GetAgcConfig(AudioProcessing* apm); |
24 void SetAgcConfig(AudioProcessing* apm, | 33 void SetAgcConfig(AudioProcessing* apm, |
25 const AgcConfig& config); | 34 const AgcConfig& config); |
26 void SetAgcStatus(AudioProcessing* apm, | 35 void SetAgcStatus(AudioProcessing* apm, |
27 AudioDeviceModule* adm, | 36 AudioDeviceModule* adm, |
28 bool enable, | 37 bool enable); |
29 AgcModes mode); | |
30 void SetEcStatus(AudioProcessing* apm, | 38 void SetEcStatus(AudioProcessing* apm, |
31 bool enable, | 39 bool enable, |
32 EcModes mode); | 40 EcModes mode); |
33 void SetEcMetricsStatus(AudioProcessing* apm, bool enable); | 41 void SetEcMetricsStatus(AudioProcessing* apm, bool enable); |
34 void SetAecmMode(AudioProcessing* apm, bool enable_cng); | 42 void SetAecmMode(AudioProcessing* apm, bool enable_cng); |
35 void SetNsStatus(AudioProcessing* apm, bool enable); | 43 void SetNsStatus(AudioProcessing* apm, bool enable); |
36 void SetTypingDetectionStatus(AudioProcessing* apm, bool enable); | 44 void SetTypingDetectionStatus(AudioProcessing* apm, bool enable); |
37 | 45 |
38 } // namespace apm_helpers | 46 } // namespace apm_helpers |
39 } // namespace webrtc | 47 } // namespace webrtc |
40 | 48 |
41 #endif // WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ | 49 #endif // WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ |
OLD | NEW |