OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LEVEL_CONTROLLER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LEVEL_CONTROLLER_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LEVEL_CONTROLLER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LEVEL_CONTROLLER_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/base/constructormagic.h" | |
18 #include "webrtc/base/optional.h" | |
19 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 17 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
20 #include "webrtc/modules/audio_processing/level_controller/gain_applier.h" | 18 #include "webrtc/modules/audio_processing/level_controller/gain_applier.h" |
21 #include "webrtc/modules/audio_processing/level_controller/gain_selector.h" | 19 #include "webrtc/modules/audio_processing/level_controller/gain_selector.h" |
22 #include "webrtc/modules/audio_processing/level_controller/noise_level_estimator
.h" | 20 #include "webrtc/modules/audio_processing/level_controller/noise_level_estimator
.h" |
23 #include "webrtc/modules/audio_processing/level_controller/peak_level_estimator.
h" | 21 #include "webrtc/modules/audio_processing/level_controller/peak_level_estimator.
h" |
24 #include "webrtc/modules/audio_processing/level_controller/saturating_gain_estim
ator.h" | 22 #include "webrtc/modules/audio_processing/level_controller/saturating_gain_estim
ator.h" |
25 #include "webrtc/modules/audio_processing/level_controller/signal_classifier.h" | 23 #include "webrtc/modules/audio_processing/level_controller/signal_classifier.h" |
| 24 #include "webrtc/rtc_base/constructormagic.h" |
| 25 #include "webrtc/rtc_base/optional.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 | 28 |
29 class ApmDataDumper; | 29 class ApmDataDumper; |
30 class AudioBuffer; | 30 class AudioBuffer; |
31 | 31 |
32 class LevelController { | 32 class LevelController { |
33 public: | 33 public: |
34 LevelController(); | 34 LevelController(); |
35 ~LevelController(); | 35 ~LevelController(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 float last_gain_; | 86 float last_gain_; |
87 bool gain_jumpstart_ = false; | 87 bool gain_jumpstart_ = false; |
88 AudioProcessing::Config::LevelController config_; | 88 AudioProcessing::Config::LevelController config_; |
89 | 89 |
90 RTC_DISALLOW_COPY_AND_ASSIGN(LevelController); | 90 RTC_DISALLOW_COPY_AND_ASSIGN(LevelController); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace webrtc | 93 } // namespace webrtc |
94 | 94 |
95 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LEVEL_CONTROLLER_H_ | 95 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LEVEL_CONTROLLER_H_ |
OLD | NEW |