Opus implementation of the AudioEncoderFactoryTemplate API
This was previously reverted, because external projects were using the
internal webrtc::AudioEncoderOpus class and broke when it was renamed.
This re-land avoids renaming it immediately, to give those projects
time to adapt. It also has to revert some of the changes I had made to the
Config struct, since that was also used by the same external projects.
BUG=webrtc:7831
Review-Url: https://codereview.webrtc.org/2948483002
Cr-Commit-Position: refs/heads/master@{#18852}
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 30460ba..1aa4031 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -829,6 +829,7 @@
":audio_network_adaptor",
"../..:webrtc_common",
"../../api/audio_codecs:audio_codecs_api",
+ "../../api/audio_codecs/opus:audio_encoder_opus_config",
"../../base:protobuf_utils",
"../../base:rtc_base_approved",
"../../base:rtc_numerics",
@@ -840,11 +841,6 @@
]
defines = audio_codec_defines
- if (rtc_opus_variable_complexity) {
- defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
- } else {
- defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
- }
if (rtc_build_opus) {
public_deps += [ rtc_opus_dir ]
@@ -1485,6 +1481,7 @@
":neteq",
":neteq_tools",
"../../api/audio_codecs:audio_codecs_api",
+ "../../api/audio_codecs/opus:audio_encoder_opus",
"../../base:protobuf_utils",
"../../common_audio",
"../../test:test_main",