From c453c16dbedbf703c040add2cbcecf6aa9f88e78 Mon Sep 17 00:00:00 2001 From: Gustaf Ullberg Date: Fri, 16 Feb 2018 12:09:55 +0100 Subject: [PATCH] Add stubs for AEC3 factory. This CL creates empty placeholders for EchoCanceller3Factory. This allows for moving the factory of AEC3 as soon as downstream has been updated to include echo_canceller3_factory.h. Bug: webrtc:8844 Change-Id: I77c53d8257291f189c637e1c9ed76c4e74be1858 Reviewed-on: https://webrtc-review.googlesource.com/53862 Commit-Queue: Gustaf Ullberg Reviewed-by: Karl Wiberg Cr-Commit-Position: refs/heads/master@{#22050} --- api/BUILD.gn | 15 ++++++++++++--- api/audio/echo_canceller3_factory.cc | 12 ++++++++++++ api/audio/echo_canceller3_factory.h | 19 +++++++++++++++++++ 3 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 api/audio/echo_canceller3_factory.cc create mode 100644 api/audio/echo_canceller3_factory.h diff --git a/api/BUILD.gn b/api/BUILD.gn index d55fd46de8..78a513729e 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -224,8 +224,19 @@ rtc_source_set("aec3_config") { sources = [ "audio/echo_canceller3_config.h", ] +} - deps = [] +rtc_source_set("aec3_factory") { + visibility = [ "*" ] + sources = [ + "audio/echo_canceller3_factory.cc", + "audio/echo_canceller3_factory.h", + ] + + deps = [ + ":aec3_config", + ":echo_control", + ] } rtc_source_set("echo_control") { @@ -233,8 +244,6 @@ rtc_source_set("echo_control") { sources = [ "audio/echo_control.h", ] - - deps = [] } rtc_source_set("audio_options_api") { diff --git a/api/audio/echo_canceller3_factory.cc b/api/audio/echo_canceller3_factory.cc new file mode 100644 index 0000000000..bdc76b0dd0 --- /dev/null +++ b/api/audio/echo_canceller3_factory.cc @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ +#include "api/audio/echo_canceller3_factory.h" + +// TODO(bugs.webrtc.org/8844): EchoCanceller3Factory will be moved here. diff --git a/api/audio/echo_canceller3_factory.h b/api/audio/echo_canceller3_factory.h new file mode 100644 index 0000000000..e5a81c8f58 --- /dev/null +++ b/api/audio/echo_canceller3_factory.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ + +#ifndef API_AUDIO_ECHO_CANCELLER3_FACTORY_H_ +#define API_AUDIO_ECHO_CANCELLER3_FACTORY_H_ + +#include "api/audio/echo_canceller3_config.h" +#include "api/audio/echo_control.h" + +// TODO(bugs.webrtc.org/8844): EchoCanceller3Factory will be moved here. + +#endif // API_AUDIO_ECHO_CANCELLER3_FACTORY_H_