| 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 std::unique_ptr<EchoRemover> echo_remover); | 35 std::unique_ptr<EchoRemover> echo_remover); |
| 36 | 36 |
| 37 virtual ~BlockProcessor() = default; | 37 virtual ~BlockProcessor() = default; |
| 38 | 38 |
| 39 // Processes a block of capture data. | 39 // Processes a block of capture data. |
| 40 virtual void ProcessCapture( | 40 virtual void ProcessCapture( |
| 41 bool echo_path_gain_change, | 41 bool echo_path_gain_change, |
| 42 bool capture_signal_saturation, | 42 bool capture_signal_saturation, |
| 43 std::vector<std::vector<float>>* capture_block) = 0; | 43 std::vector<std::vector<float>>* capture_block) = 0; |
| 44 | 44 |
| 45 // Buffers a block of render data supplied by a FrameBlocker object. Returns a | 45 // Buffers a block of render data supplied by a FrameBlocker object. |
| 46 // bool indicating the success of the buffering. | 46 virtual void BufferRender( |
| 47 virtual bool BufferRender(std::vector<std::vector<float>>* render_block) = 0; | 47 const std::vector<std::vector<float>>& render_block) = 0; |
| 48 | 48 |
| 49 // Reports whether echo leakage has been detected in the echo canceller | 49 // Reports whether echo leakage has been detected in the echo canceller |
| 50 // output. | 50 // output. |
| 51 virtual void UpdateEchoLeakageStatus(bool leakage_detected) = 0; | 51 virtual void UpdateEchoLeakageStatus(bool leakage_detected) = 0; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace webrtc | 54 } // namespace webrtc |
| 55 | 55 |
| 56 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_BLOCK_PROCESSOR_H_ | 56 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_BLOCK_PROCESSOR_H_ |
| OLD | NEW |