aboutsummaryrefslogtreecommitdiff
path: root/api/audio_codecs/opus/BUILD.gn
diff options
context:
space:
mode:
authorAlex Loiko <aleloi@webrtc.org>2019-04-08 17:19:41 +0200
committerCommit Bot <commit-bot@chromium.org>2019-04-08 16:15:37 +0000
commite5b94160b5c01c0276d46813a97baa9d052c4847 (patch)
tree14f6471e0acd653347caa411845f127eff86e9ef /api/audio_codecs/opus/BUILD.gn
parente9d2b4efdd5dddaa3a476c0ac2a9cf9125b39929 (diff)
downloadwebrtc-e5b94160b5c01c0276d46813a97baa9d052c4847.tar.gz
Decoder for multistream Opus.
See https://webrtc-review.googlesource.com/c/src/+/121764 for the overall vision. This CL adds a multistream Opus decoder. It's a new code-path to not interfere with the standard Opus decoder. We introduce new SDP syntax, which uses terminology of RFC 7845. We also set up the decoder side to parse it. The encoder part will come in a later CL. E.g. this is the new SDP syntax for 6.1 surround sound: "multiopus/48000/6 channel_mapping=0,4,1,2,3,5 num_streams=4 coupled_streams=2" Bug: webrtc:8649 Change-Id: Ifbc584cbb6d07aed373f223512a20d6d72cec5ec Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/129768 Commit-Queue: Alex Loiko <aleloi@webrtc.org> Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27493}
Diffstat (limited to 'api/audio_codecs/opus/BUILD.gn')
-rw-r--r--api/audio_codecs/opus/BUILD.gn20
1 files changed, 20 insertions, 0 deletions
diff --git a/api/audio_codecs/opus/BUILD.gn b/api/audio_codecs/opus/BUILD.gn
index 5552c21fa5..498e45a26e 100644
--- a/api/audio_codecs/opus/BUILD.gn
+++ b/api/audio_codecs/opus/BUILD.gn
@@ -15,6 +15,7 @@ if (is_android) {
rtc_static_library("audio_encoder_opus_config") {
visibility = [ "*" ]
sources = [
+ "audio_decoder_multi_channel_opus_config.h",
"audio_encoder_opus_config.cc",
"audio_encoder_opus_config.h",
]
@@ -68,3 +69,22 @@ rtc_static_library("audio_decoder_opus") {
"//third_party/abseil-cpp/absl/types:optional",
]
}
+
+rtc_static_library("audio_decoder_multiopus") {
+ visibility = [ "*" ]
+ poisonous = [ "audio_codecs" ]
+ sources = [
+ "audio_decoder_multi_channel_opus.cc",
+ "audio_decoder_multi_channel_opus.h",
+ ]
+ deps = [
+ ":audio_encoder_opus_config",
+ "..:audio_codecs_api",
+ "../../../modules/audio_coding:webrtc_multiopus",
+ "../../../rtc_base:rtc_base_approved",
+ "../../../rtc_base/system:rtc_export",
+ "//third_party/abseil-cpp/absl/memory",
+ "//third_party/abseil-cpp/absl/strings",
+ "//third_party/abseil-cpp/absl/types:optional",
+ ]
+}