Skip to content

Enable iLBC codec. #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: nw45
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gn
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ default_args = {
# Don't include the iLBC audio codec.
# TODO(bugs.webrtc.org/8396): Once WebRTC gets rid of its internal
# deps on codecs, we can remove this.
rtc_include_ilbc = false
rtc_include_ilbc = true

# Changes some setup for the Crashpad build to set them to build against
# Chromium's zlib, base, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include "third_party/webrtc/api/audio_codecs/opus/audio_decoder_opus.h"
#include "third_party/webrtc/api/audio_codecs/opus/audio_encoder_multi_channel_opus.h"
#include "third_party/webrtc/api/audio_codecs/opus/audio_encoder_opus.h"
#include "third_party/webrtc/api/audio_codecs/ilbc/audio_decoder_ilbc.h"
#include "third_party/webrtc/api/audio_codecs/ilbc/audio_encoder_ilbc.h"

namespace blink {

Expand Down Expand Up @@ -73,7 +75,7 @@ struct NotAdvertisedDecoder {
rtc::scoped_refptr<webrtc::AudioEncoderFactory>
CreateWebrtcAudioEncoderFactory() {
return webrtc::CreateAudioEncoderFactory<
webrtc::AudioEncoderOpus, webrtc::AudioEncoderIsac,
webrtc::AudioEncoderOpus, webrtc::AudioEncoderIsac,webrtc::AudioEncoderIlbc,
webrtc::AudioEncoderG722, webrtc::AudioEncoderG711,
NotAdvertisedEncoder<webrtc::AudioEncoderL16>,
NotAdvertisedEncoder<webrtc::AudioEncoderMultiChannelOpus>>();
Expand All @@ -82,7 +84,7 @@ CreateWebrtcAudioEncoderFactory() {
rtc::scoped_refptr<webrtc::AudioDecoderFactory>
CreateWebrtcAudioDecoderFactory() {
return webrtc::CreateAudioDecoderFactory<
webrtc::AudioDecoderOpus, webrtc::AudioDecoderIsac,
webrtc::AudioDecoderOpus, webrtc::AudioDecoderIsac,webrtc::AudioDecoderIlbc,
webrtc::AudioDecoderG722, webrtc::AudioDecoderG711,
NotAdvertisedDecoder<webrtc::AudioDecoderL16>,
NotAdvertisedDecoder<webrtc::AudioDecoderMultiChannelOpus>>();
Expand Down
2 changes: 2 additions & 0 deletions third_party/webrtc_overrides/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ component("webrtc_component") {
"//third_party/webrtc/api/audio_codecs/opus:audio_decoder_opus",
"//third_party/webrtc/api/audio_codecs/opus:audio_encoder_multiopus",
"//third_party/webrtc/api/audio_codecs/opus:audio_encoder_opus",
"//third_party/webrtc/api/audio_codecs/ilbc:audio_decoder_ilbc",
"//third_party/webrtc/api/audio_codecs/ilbc:audio_encoder_ilbc",
"//third_party/webrtc/api/rtc_event_log:rtc_event_log_factory",
"//third_party/webrtc/api/video:video_bitrate_allocation",
"//third_party/webrtc/api/video:video_frame",
Expand Down