Moved codec-specific audio packet splitting into decoders.
There's still some code run specifically for Opus w/ FEC. It will be
addressed in a separate CL.
BUG=webrtc:5805
Review-Url: https://codereview.webrtc.org/2326003002
Cr-Commit-Position: refs/heads/master@{#14319}
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 2c90c7a..a7b50a0 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -130,6 +130,7 @@
"codecs/audio_decoder.h",
]
deps = [
+ ":legacy_encoded_audio_frame",
"../..:webrtc_common",
"../../base:rtc_base_approved",
]
@@ -187,6 +188,13 @@
]
}
+rtc_source_set("legacy_encoded_audio_frame") {
+ sources = [
+ "codecs/legacy_encoded_audio_frame.cc",
+ "codecs/legacy_encoded_audio_frame.h",
+ ]
+}
+
config("g711_config") {
include_dirs = [
"../../..",
@@ -211,6 +219,7 @@
deps = [
":audio_decoder_interface",
":audio_encoder_interface",
+ ":legacy_encoded_audio_frame",
]
}
@@ -239,6 +248,7 @@
deps = [
":audio_decoder_interface",
":audio_encoder_interface",
+ ":legacy_encoded_audio_frame",
]
}