OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 #include "webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h" |
| 11 |
| 12 #include "webrtc/base/checks.h" |
| 13 #include "webrtc/modules/audio_processing/aec3/aec3_constants.h" |
| 14 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
| 15 |
| 16 namespace webrtc { |
| 17 |
| 18 // TODO(peah): Add functionality. |
| 19 EchoPathDelayEstimator::EchoPathDelayEstimator(ApmDataDumper* data_dumper, |
| 20 int sample_rate_hz) { |
| 21 RTC_DCHECK(data_dumper); |
| 22 RTC_DCHECK(sample_rate_hz == 8000 || sample_rate_hz == 16000 || |
| 23 sample_rate_hz == 32000 || sample_rate_hz == 48000); |
| 24 } |
| 25 |
| 26 EchoPathDelayEstimator::~EchoPathDelayEstimator() = default; |
| 27 |
| 28 // TODO(peah): Add functionality. |
| 29 rtc::Optional<size_t> EchoPathDelayEstimator::EstimateDelay( |
| 30 rtc::ArrayView<const float> render, |
| 31 rtc::ArrayView<const float> capture) { |
| 32 RTC_DCHECK_EQ(render.size(), kBlockSize); |
| 33 RTC_DCHECK_EQ(capture.size(), kBlockSize); |
| 34 return rtc::Optional<size_t>(); |
| 35 } |
| 36 |
| 37 } // namespace webrtc |
OLD | NEW |