Renaming opus_interface.c to opus_interface.cc.

This is to allow advanced features of WebRTC/Chrome e.g., field trials.

More style compliant changes may follow up. Only a minimal (not in terms of line changes) is applied, so that presubmit does not complain. These changes include

1. removing unused headers.
2. eliminating c-style casting.

Bug: b/143582588
Change-Id: I6d0fd926c542ab0afdc38cc4bf03aaf584ec13dd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/158670
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Minyue Li <minyue@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29657}
This commit is contained in:
Minyue Li
2019-10-29 21:36:13 +01:00
committed by Commit Bot
parent 09860e0bc3
commit 54d027843a
2 changed files with 79 additions and 92 deletions

View File

@ -765,7 +765,7 @@ rtc_library("webrtc_opus") {
"//third_party/abseil-cpp/absl/types:optional",
]
public_deps = [ # no-presubmit-check TODO(webrtc:8603)
":webrtc_opus_c",
":webrtc_opus_wrapper",
]
defines = audio_codec_defines
@ -803,7 +803,7 @@ rtc_library("webrtc_multiopus") {
"//third_party/abseil-cpp/absl/types:optional",
]
public_deps = [ # no-presubmit-check TODO(webrtc:8603)
":webrtc_opus_c",
":webrtc_opus_wrapper",
]
defines = audio_codec_defines
@ -815,11 +815,11 @@ rtc_library("webrtc_multiopus") {
}
}
rtc_library("webrtc_opus_c") {
rtc_library("webrtc_opus_wrapper") {
poisonous = [ "audio_codecs" ]
sources = [
"codecs/opus/opus_inst.h",
"codecs/opus/opus_interface.c",
"codecs/opus/opus_interface.cc",
"codecs/opus/opus_interface.h",
]
@ -1296,7 +1296,7 @@ if (rtc_include_tests) {
":audio_encoder_cng",
":pcm16b_c",
":red",
":webrtc_opus_c",
":webrtc_opus_wrapper",
"..:module_api",
"../../api:rtp_headers",
"../../api/audio:audio_frame_api",