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 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef MEDIA_ENGINE_APM_HELPERS_H_ |
| 12 | #define MEDIA_ENGINE_APM_HELPERS_H_ |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 13 | |
Steve Anton | e78bcb9 | 2017-10-31 09:53:08 -0700 | [diff] [blame] | 14 | #include <cstdint> |
| 15 | |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 16 | namespace webrtc { |
| 17 | |
| 18 | class AudioProcessing; |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 19 | |
solenberg | 22818a5 | 2017-03-16 01:20:23 -0700 | [diff] [blame] | 20 | enum EcModes { |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 21 | kEcConference, // Conferencing default (aggressive AEC). |
| 22 | kEcAecm, // AEC mobile. |
solenberg | 22818a5 | 2017-03-16 01:20:23 -0700 | [diff] [blame] | 23 | }; |
| 24 | |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 25 | namespace apm_helpers { |
| 26 | |
Fredrik Solenberg | 55900fd | 2017-11-23 20:22:55 +0100 | [diff] [blame] | 27 | void Init(AudioProcessing* apm); |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 28 | void SetEcStatus(AudioProcessing* apm, bool enable, EcModes mode); |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 29 | void SetEcMetricsStatus(AudioProcessing* apm, bool enable); |
| 30 | void SetAecmMode(AudioProcessing* apm, bool enable_cng); |
| 31 | void SetNsStatus(AudioProcessing* apm, bool enable); |
solenberg | 76377c5 | 2017-02-21 00:54:31 -0800 | [diff] [blame] | 32 | |
| 33 | } // namespace apm_helpers |
| 34 | } // namespace webrtc |
| 35 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 36 | #endif // MEDIA_ENGINE_APM_HELPERS_H_ |