| 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 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" | 11 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" |
| 12 | 12 |
| 13 #include <string.h> | 13 #include <string.h> |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 | 15 |
| 16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/base/constructormagic.h" |
| 18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
| 19 #include "webrtc/system_wrappers/include/logging.h" | |
| 20 | 19 |
| 21 namespace webrtc { | 20 namespace webrtc { |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 class RenderDelayBufferImpl final : public RenderDelayBuffer { | 23 class RenderDelayBufferImpl final : public RenderDelayBuffer { |
| 25 public: | 24 public: |
| 26 RenderDelayBufferImpl(size_t size_blocks, | 25 RenderDelayBufferImpl(size_t size_blocks, |
| 27 size_t num_bands, | 26 size_t num_bands, |
| 28 size_t max_api_jitter_blocks); | 27 size_t max_api_jitter_blocks); |
| 29 ~RenderDelayBufferImpl() override; | 28 ~RenderDelayBufferImpl() override; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } // namespace | 95 } // namespace |
| 97 | 96 |
| 98 RenderDelayBuffer* RenderDelayBuffer::Create(size_t size_blocks, | 97 RenderDelayBuffer* RenderDelayBuffer::Create(size_t size_blocks, |
| 99 size_t num_bands, | 98 size_t num_bands, |
| 100 size_t max_api_jitter_blocks) { | 99 size_t max_api_jitter_blocks) { |
| 101 return new RenderDelayBufferImpl(size_blocks, num_bands, | 100 return new RenderDelayBufferImpl(size_blocks, num_bands, |
| 102 max_api_jitter_blocks); | 101 max_api_jitter_blocks); |
| 103 } | 102 } |
| 104 | 103 |
| 105 } // namespace webrtc | 104 } // namespace webrtc |
| OLD | NEW |