OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2016 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 |
| 11 #include "webrtc/modules/audio_processing/residual_echo_detector.h" |
| 12 |
| 13 #include "webrtc/modules/audio_processing/audio_buffer.h" |
| 14 |
| 15 namespace webrtc { |
| 16 |
| 17 ResidualEchoDetector::ResidualEchoDetector() = default; |
| 18 |
| 19 ResidualEchoDetector::~ResidualEchoDetector() = default; |
| 20 |
| 21 void ResidualEchoDetector::AnalyzeRenderAudio( |
| 22 rtc::ArrayView<const float> render_audio) const { |
| 23 // TODO(ivoc): Add implementation. |
| 24 } |
| 25 |
| 26 void ResidualEchoDetector::AnalyzeCaptureAudio( |
| 27 rtc::ArrayView<const float> render_audio) { |
| 28 // TODO(ivoc): Add implementation. |
| 29 } |
| 30 |
| 31 void ResidualEchoDetector::Initialize() { |
| 32 // TODO(ivoc): Add implementation. |
| 33 } |
| 34 |
| 35 void ResidualEchoDetector::PackRenderAudioBuffer( |
| 36 AudioBuffer* audio, |
| 37 std::vector<float>* packed_buffer) { |
| 38 RTC_DCHECK_GE(160u, audio->num_frames_per_band()); |
| 39 |
| 40 packed_buffer->clear(); |
| 41 packed_buffer->insert(packed_buffer->end(), |
| 42 audio->split_bands_const_f(0)[kBand0To8kHz], |
| 43 (audio->split_bands_const_f(0)[kBand0To8kHz] + |
| 44 audio->num_frames_per_band())); |
| 45 } |
| 46 |
| 47 float ResidualEchoDetector::get_echo_likelihood() const { |
| 48 // TODO(ivoc): Add implementation. |
| 49 return 0.0f; |
| 50 } |
| 51 |
| 52 } // namespace webrtc |
OLD | NEW |