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 104 matching lines...) Loading... |
115 NoiseSuppression* noise_suppression() const override; | 115 NoiseSuppression* noise_suppression() const override; |
116 VoiceDetection* voice_detection() const override; | 116 VoiceDetection* voice_detection() const override; |
117 | 117 |
118 protected: | 118 protected: |
119 // Overridden in a mock. | 119 // Overridden in a mock. |
120 virtual int InitializeLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 120 virtual int InitializeLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
121 | 121 |
122 private: | 122 private: |
123 int InitializeLocked(const ProcessingConfig& config) | 123 int InitializeLocked(const ProcessingConfig& config) |
124 EXCLUSIVE_LOCKS_REQUIRED(crit_); | 124 EXCLUSIVE_LOCKS_REQUIRED(crit_); |
| 125 int MaybeInitializeLockedRender(const ProcessingConfig& config) |
| 126 EXCLUSIVE_LOCKS_REQUIRED(crit_); |
| 127 int MaybeInitializeLockedCapture(const ProcessingConfig& config) |
| 128 EXCLUSIVE_LOCKS_REQUIRED(crit_); |
125 int MaybeInitializeLocked(const ProcessingConfig& config) | 129 int MaybeInitializeLocked(const ProcessingConfig& config) |
126 EXCLUSIVE_LOCKS_REQUIRED(crit_); | 130 EXCLUSIVE_LOCKS_REQUIRED(crit_); |
127 // TODO(ekm): Remove once all clients updated to new interface. | 131 // TODO(ekm): Remove once all clients updated to new interface. |
128 int AnalyzeReverseStream(const float* const* src, | 132 int AnalyzeReverseStream(const float* const* src, |
129 const StreamConfig& input_config, | 133 const StreamConfig& input_config, |
130 const StreamConfig& output_config); | 134 const StreamConfig& output_config); |
131 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 135 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
132 int ProcessReverseStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 136 int ProcessReverseStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
133 | 137 |
134 bool is_data_processed() const; | 138 bool is_data_processed() const; |
135 bool output_copy_needed(bool is_data_processed) const; | 139 bool output_copy_needed(bool is_data_processed) const; |
136 bool synthesis_needed(bool is_data_processed) const; | 140 bool synthesis_needed(bool is_data_processed) const; |
137 bool analysis_needed(bool is_data_processed) const; | 141 bool analysis_needed(bool is_data_processed) const; |
138 bool is_rev_processed() const; | 142 bool is_rev_processed() const; |
139 bool rev_conversion_needed() const; | 143 bool rev_conversion_needed() const; |
| 144 // TODO(peah): Add EXCLUSIVE_LOCKS_REQUIRED for the method below. |
| 145 bool render_check_rev_conversion_needed() const; |
140 void InitializeExperimentalAgc() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 146 void InitializeExperimentalAgc() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
141 void InitializeTransient() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 147 void InitializeTransient() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
142 void InitializeBeamformer() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 148 void InitializeBeamformer() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
143 void InitializeIntelligibility() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 149 void InitializeIntelligibility() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
144 void MaybeUpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 150 void MaybeUpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
145 | 151 |
146 EchoCancellationImpl* echo_cancellation_; | 152 EchoCancellationImpl* echo_cancellation_; |
147 EchoControlMobileImpl* echo_control_mobile_; | 153 EchoControlMobileImpl* echo_control_mobile_; |
148 GainControlImpl* gain_control_; | 154 GainControlImpl* gain_control_; |
149 HighPassFilterImpl* high_pass_filter_; | 155 HighPassFilterImpl* high_pass_filter_; |
(...skipping 69 matching lines...) Loading... |
219 const std::vector<Point> array_geometry_; | 225 const std::vector<Point> array_geometry_; |
220 const SphericalPointf target_direction_; | 226 const SphericalPointf target_direction_; |
221 | 227 |
222 bool intelligibility_enabled_; | 228 bool intelligibility_enabled_; |
223 rtc::scoped_ptr<IntelligibilityEnhancer> intelligibility_enhancer_; | 229 rtc::scoped_ptr<IntelligibilityEnhancer> intelligibility_enhancer_; |
224 }; | 230 }; |
225 | 231 |
226 } // namespace webrtc | 232 } // namespace webrtc |
227 | 233 |
228 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 234 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ |
OLD | NEW |