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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // during APM creation). | 127 // during APM creation). |
128 EchoCancellation* echo_cancellation() const override; | 128 EchoCancellation* echo_cancellation() const override; |
129 EchoControlMobile* echo_control_mobile() const override; | 129 EchoControlMobile* echo_control_mobile() const override; |
130 GainControl* gain_control() const override; | 130 GainControl* gain_control() const override; |
131 // TODO(peah): Deprecate this API call. | 131 // TODO(peah): Deprecate this API call. |
132 HighPassFilter* high_pass_filter() const override; | 132 HighPassFilter* high_pass_filter() const override; |
133 LevelEstimator* level_estimator() const override; | 133 LevelEstimator* level_estimator() const override; |
134 NoiseSuppression* noise_suppression() const override; | 134 NoiseSuppression* noise_suppression() const override; |
135 VoiceDetection* voice_detection() const override; | 135 VoiceDetection* voice_detection() const override; |
136 | 136 |
137 // TODO(peah): Remove these two methods once the new API allows that. | 137 // TODO(peah): Remove MutateConfig once the new API allows that. |
138 void MutateConfig(rtc::FunctionView<void(AudioProcessing::Config*)> mutator); | 138 void MutateConfig(rtc::FunctionView<void(AudioProcessing::Config*)> mutator); |
139 AudioProcessing::Config GetConfig() const; | 139 AudioProcessing::Config GetConfig() const override; |
140 | 140 |
141 protected: | 141 protected: |
142 // Overridden in a mock. | 142 // Overridden in a mock. |
143 virtual int InitializeLocked() | 143 virtual int InitializeLocked() |
144 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); | 144 EXCLUSIVE_LOCKS_REQUIRED(crit_render_, crit_capture_); |
145 | 145 |
146 private: | 146 private: |
147 // TODO(peah): These friend classes should be removed as soon as the new | 147 // TODO(peah): These friend classes should be removed as soon as the new |
148 // parameter setting scheme allows. | 148 // parameter setting scheme allows. |
149 FRIEND_TEST_ALL_PREFIXES(ApmConfiguration, DefaultBehavior); | 149 FRIEND_TEST_ALL_PREFIXES(ApmConfiguration, DefaultBehavior); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 std::unique_ptr< | 428 std::unique_ptr< |
429 SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> | 429 SwapQueue<std::vector<int16_t>, RenderQueueItemVerifier<int16_t>>> |
430 agc_render_signal_queue_; | 430 agc_render_signal_queue_; |
431 std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> | 431 std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> |
432 red_render_signal_queue_; | 432 red_render_signal_queue_; |
433 }; | 433 }; |
434 | 434 |
435 } // namespace webrtc | 435 } // namespace webrtc |
436 | 436 |
437 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ | 437 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ |
OLD | NEW |