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_GAIN_CONTROL_FOR_EXPERIMENTAL_AGC_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_FOR_EXPERIMENTAL_AGC_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_FOR_EXPERIMENTAL_AGC_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_FOR_EXPERIMENTAL_AGC_H_ |
13 | 13 |
14 #include "webrtc/base/constructormagic.h" | |
15 #include "webrtc/base/criticalsection.h" | |
16 #include "webrtc/base/thread_checker.h" | |
17 #include "webrtc/modules/audio_processing/agc/agc_manager_direct.h" | 14 #include "webrtc/modules/audio_processing/agc/agc_manager_direct.h" |
18 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 15 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
| 16 #include "webrtc/rtc_base/constructormagic.h" |
| 17 #include "webrtc/rtc_base/criticalsection.h" |
| 18 #include "webrtc/rtc_base/thread_checker.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 class ApmDataDumper; | 22 class ApmDataDumper; |
23 | 23 |
24 // This class has two main purposes: | 24 // This class has two main purposes: |
25 // | 25 // |
26 // 1) It is returned instead of the real GainControl after the new AGC has been | 26 // 1) It is returned instead of the real GainControl after the new AGC has been |
27 // enabled in order to prevent an outside user from overriding compression | 27 // enabled in order to prevent an outside user from overriding compression |
28 // settings. It doesn't do anything in its implementation, except for | 28 // settings. It doesn't do anything in its implementation, except for |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 GainControl* real_gain_control_; | 68 GainControl* real_gain_control_; |
69 int volume_; | 69 int volume_; |
70 rtc::CriticalSection* crit_capture_; | 70 rtc::CriticalSection* crit_capture_; |
71 static int instance_counter_; | 71 static int instance_counter_; |
72 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlForExperimentalAgc); | 72 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlForExperimentalAgc); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace webrtc | 75 } // namespace webrtc |
76 | 76 |
77 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_FOR_EXPERIMENTAL_AGC_H_ | 77 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_FOR_EXPERIMENTAL_AGC_H_ |
OLD | NEW |