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}
This commit is contained in:
ossu
2016-09-21 01:57:31 -07:00
committed by Commit bot
parent 3442579fd7
commit 0d526d558b
26 changed files with 571 additions and 685 deletions

View File

@ -130,6 +130,7 @@ rtc_source_set("audio_decoder_interface") {
"codecs/audio_decoder.h",
]
deps = [
":legacy_encoded_audio_frame",
"../..:webrtc_common",
"../../base:rtc_base_approved",
]
@ -187,6 +188,13 @@ rtc_source_set("red") {
]
}
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 @@ rtc_source_set("g711") {
deps = [
":audio_decoder_interface",
":audio_encoder_interface",
":legacy_encoded_audio_frame",
]
}
@ -239,6 +248,7 @@ rtc_source_set("g722") {
deps = [
":audio_decoder_interface",
":audio_encoder_interface",
":legacy_encoded_audio_frame",
]
}