OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 int target_level_dbfs() const override; | 60 int target_level_dbfs() const override; |
61 int set_compression_gain_db(int gain) override; | 61 int set_compression_gain_db(int gain) override; |
62 int enable_limiter(bool enable) override; | 62 int enable_limiter(bool enable) override; |
63 int set_analog_level_limits(int minimum, int maximum) override; | 63 int set_analog_level_limits(int minimum, int maximum) override; |
64 int analog_level_minimum() const override; | 64 int analog_level_minimum() const override; |
65 int analog_level_maximum() const override; | 65 int analog_level_maximum() const override; |
66 bool stream_is_saturated() const override; | 66 bool stream_is_saturated() const override; |
67 | 67 |
68 int Configure(); | 68 int Configure(); |
69 | 69 |
70 rtc::CriticalSection* const crit_render_ ACQUIRED_BEFORE(crit_capture_); | 70 rtc::CriticalSection* const crit_render_ RTC_ACQUIRED_BEFORE(crit_capture_); |
71 rtc::CriticalSection* const crit_capture_; | 71 rtc::CriticalSection* const crit_capture_; |
72 | 72 |
73 std::unique_ptr<ApmDataDumper> data_dumper_; | 73 std::unique_ptr<ApmDataDumper> data_dumper_; |
74 | 74 |
75 bool enabled_ = false; | 75 bool enabled_ = false; |
76 | 76 |
77 Mode mode_ GUARDED_BY(crit_capture_); | 77 Mode mode_ RTC_GUARDED_BY(crit_capture_); |
78 int minimum_capture_level_ GUARDED_BY(crit_capture_); | 78 int minimum_capture_level_ RTC_GUARDED_BY(crit_capture_); |
79 int maximum_capture_level_ GUARDED_BY(crit_capture_); | 79 int maximum_capture_level_ RTC_GUARDED_BY(crit_capture_); |
80 bool limiter_enabled_ GUARDED_BY(crit_capture_); | 80 bool limiter_enabled_ RTC_GUARDED_BY(crit_capture_); |
81 int target_level_dbfs_ GUARDED_BY(crit_capture_); | 81 int target_level_dbfs_ RTC_GUARDED_BY(crit_capture_); |
82 int compression_gain_db_ GUARDED_BY(crit_capture_); | 82 int compression_gain_db_ RTC_GUARDED_BY(crit_capture_); |
83 int analog_capture_level_ GUARDED_BY(crit_capture_); | 83 int analog_capture_level_ RTC_GUARDED_BY(crit_capture_); |
84 bool was_analog_level_set_ GUARDED_BY(crit_capture_); | 84 bool was_analog_level_set_ RTC_GUARDED_BY(crit_capture_); |
85 bool stream_is_saturated_ GUARDED_BY(crit_capture_); | 85 bool stream_is_saturated_ RTC_GUARDED_BY(crit_capture_); |
86 | 86 |
87 std::vector<std::unique_ptr<GainController>> gain_controllers_; | 87 std::vector<std::unique_ptr<GainController>> gain_controllers_; |
88 | 88 |
89 rtc::Optional<size_t> num_proc_channels_ GUARDED_BY(crit_capture_); | 89 rtc::Optional<size_t> num_proc_channels_ RTC_GUARDED_BY(crit_capture_); |
90 rtc::Optional<int> sample_rate_hz_ GUARDED_BY(crit_capture_); | 90 rtc::Optional<int> sample_rate_hz_ RTC_GUARDED_BY(crit_capture_); |
91 | 91 |
92 static int instance_counter_; | 92 static int instance_counter_; |
93 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlImpl); | 93 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlImpl); |
94 }; | 94 }; |
95 } // namespace webrtc | 95 } // namespace webrtc |
96 | 96 |
97 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ | 97 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ |
OLD | NEW |