| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 void InitializeTransient() | 178 void InitializeTransient() |
| 179 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); | 179 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); |
| 180 void InitializeBeamformer() | 180 void InitializeBeamformer() |
| 181 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); | 181 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); |
| 182 void InitializeIntelligibility() | 182 void InitializeIntelligibility() |
| 183 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); | 183 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); |
| 184 void InitializeHighPassFilter() | 184 void InitializeHighPassFilter() |
| 185 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); | 185 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); |
| 186 void InitializeNoiseSuppression() | 186 void InitializeNoiseSuppression() |
| 187 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); | 187 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); |
| 188 void InitializeLevelEstimator() |
| 189 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); |
| 188 int InitializeLocked(const ProcessingConfig& config) | 190 int InitializeLocked(const ProcessingConfig& config) |
| 189 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); | 191 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); |
| 190 | 192 |
| 191 // Capture-side exclusive methods possibly running APM in a multi-threaded | 193 // Capture-side exclusive methods possibly running APM in a multi-threaded |
| 192 // manner that are called with the render lock already acquired. | 194 // manner that are called with the render lock already acquired. |
| 193 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); | 195 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); |
| 194 bool output_copy_needed(bool is_data_processed) const | 196 bool output_copy_needed(bool is_data_processed) const |
| 195 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); | 197 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); |
| 196 bool is_data_processed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); | 198 bool is_data_processed() const EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); |
| 197 bool synthesis_needed(bool is_data_processed) const | 199 bool synthesis_needed(bool is_data_processed) const |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 329 |
| 328 struct ApmRenderState { | 330 struct ApmRenderState { |
| 329 rtc::scoped_ptr<AudioConverter> render_converter; | 331 rtc::scoped_ptr<AudioConverter> render_converter; |
| 330 rtc::scoped_ptr<AudioBuffer> render_audio; | 332 rtc::scoped_ptr<AudioBuffer> render_audio; |
| 331 } render_ GUARDED_BY(crit_render_); | 333 } render_ GUARDED_BY(crit_render_); |
| 332 }; | 334 }; |
| 333 | 335 |
| 334 } // namespace webrtc | 336 } // namespace webrtc |
| 335 | 337 |
| 336 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 338 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ |
| OLD | NEW |