solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 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_MEDIA_ENGINE_APM_HELPERS_H_ |
| 12 | #define WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ |
| 13 | |
| 14 | #include "webrtc/common_types.h" |
| 15 | |
| 16 | namespace webrtc { |
| 17 | |
| 18 | class AudioProcessing; |
| 19 | class AudioDeviceModule; |
| 20 | |
| 21 | namespace apm_helpers { |
| 22 | |
| 23 | AgcConfig GetAgcConfig(AudioProcessing* apm); |
| 24 | void SetAgcConfig(AudioProcessing* apm, |
| 25 | const AgcConfig& config); |
| 26 | void SetAgcStatus(AudioProcessing* apm, |
| 27 | AudioDeviceModule* adm, |
| 28 | bool enable, |
| 29 | AgcModes mode); |
| 30 | void SetEcStatus(AudioProcessing* apm, |
| 31 | bool enable, |
| 32 | EcModes mode); |
| 33 | void SetEcMetricsStatus(AudioProcessing* apm, bool enable); |
| 34 | void SetAecmMode(AudioProcessing* apm, bool enable_cng); |
| 35 | void SetNsStatus(AudioProcessing* apm, bool enable); |
| 36 | void SetTypingDetectionStatus(AudioProcessing* apm, bool enable); |
| 37 | |
| 38 | } // namespace apm_helpers |
| 39 | } // namespace webrtc |
| 40 | |
| 41 | #endif // WEBRTC_MEDIA_ENGINE_APM_HELPERS_H_ |