| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_DELAY_BUFFER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_DELAY_BUFFER_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_DELAY_BUFFER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_DELAY_BUFFER_H_ |
| 13 | 13 |
| 14 #include <stddef.h> | 14 #include <stddef.h> |
| 15 #include <array> | 15 #include <array> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/api/array_view.h" |
| 18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
| 19 #include "webrtc/modules/audio_processing/aec3/downsampled_render_buffer.h" | 20 #include "webrtc/modules/audio_processing/aec3/downsampled_render_buffer.h" |
| 20 #include "webrtc/modules/audio_processing/aec3/fft_data.h" | 21 #include "webrtc/modules/audio_processing/aec3/fft_data.h" |
| 21 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" | 22 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" |
| 22 #include "webrtc/rtc_base/array_view.h" | |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 | 25 |
| 26 // Class for buffering the incoming render blocks such that these may be | 26 // Class for buffering the incoming render blocks such that these may be |
| 27 // extracted with a specified delay. | 27 // extracted with a specified delay. |
| 28 class RenderDelayBuffer { | 28 class RenderDelayBuffer { |
| 29 public: | 29 public: |
| 30 static RenderDelayBuffer* Create(size_t num_bands); | 30 static RenderDelayBuffer* Create(size_t num_bands); |
| 31 virtual ~RenderDelayBuffer() = default; | 31 virtual ~RenderDelayBuffer() = default; |
| 32 | 32 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 50 // Returns the render buffer for the echo remover. | 50 // Returns the render buffer for the echo remover. |
| 51 virtual const RenderBuffer& GetRenderBuffer() const = 0; | 51 virtual const RenderBuffer& GetRenderBuffer() const = 0; |
| 52 | 52 |
| 53 // Returns the downsampled render buffer. | 53 // Returns the downsampled render buffer. |
| 54 virtual const DownsampledRenderBuffer& GetDownsampledRenderBuffer() const = 0; | 54 virtual const DownsampledRenderBuffer& GetDownsampledRenderBuffer() const = 0; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace webrtc | 57 } // namespace webrtc |
| 58 | 58 |
| 59 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_DELAY_BUFFER_H_ | 59 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_DELAY_BUFFER_H_ |
| OLD | NEW |