Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: webrtc/modules/audio_coding/acm2/audio_coding_module.cc

Issue 2397573006: Using AudioOption to enable audio network adaptor. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 } 1261 }
1262 1262
1263 void AudioCodingModuleImpl::GetDecodingCallStatistics( 1263 void AudioCodingModuleImpl::GetDecodingCallStatistics(
1264 AudioDecodingCallStats* call_stats) const { 1264 AudioDecodingCallStats* call_stats) const {
1265 receiver_.GetDecodingCallStatistics(call_stats); 1265 receiver_.GetDecodingCallStatistics(call_stats);
1266 } 1266 }
1267 1267
1268 } // namespace 1268 } // namespace
1269 1269
1270 AudioCodingModule::Config::Config() 1270 AudioCodingModule::Config::Config()
1271 : id(0), neteq_config(), clock(Clock::GetRealTimeClock()) { 1271 : id(0),
1272 neteq_config(),
1273 audio_network_adaptor_enabled(false),
1274 clock(Clock::GetRealTimeClock()) {
1272 // Post-decode VAD is disabled by default in NetEq, however, Audio 1275 // Post-decode VAD is disabled by default in NetEq, however, Audio
1273 // Conference Mixer relies on VAD decisions and fails without them. 1276 // Conference Mixer relies on VAD decisions and fails without them.
1274 neteq_config.enable_post_decode_vad = true; 1277 neteq_config.enable_post_decode_vad = true;
1275 } 1278 }
1276 1279
1277 AudioCodingModule::Config::Config(const Config&) = default; 1280 AudioCodingModule::Config::Config(const Config&) = default;
1278 AudioCodingModule::Config::~Config() = default; 1281 AudioCodingModule::Config::~Config() = default;
1279 1282
1280 // Create module 1283 // Create module
1281 AudioCodingModule* AudioCodingModule::Create(int id) { 1284 AudioCodingModule* AudioCodingModule::Create(int id) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 // Checks the validity of the parameters of the given codec 1359 // Checks the validity of the parameters of the given codec
1357 bool AudioCodingModule::IsCodecValid(const CodecInst& codec) { 1360 bool AudioCodingModule::IsCodecValid(const CodecInst& codec) {
1358 bool valid = acm2::RentACodec::IsCodecValid(codec); 1361 bool valid = acm2::RentACodec::IsCodecValid(codec);
1359 if (!valid) 1362 if (!valid)
1360 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, -1, 1363 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, -1,
1361 "Invalid codec setting"); 1364 "Invalid codec setting");
1362 return valid; 1365 return valid;
1363 } 1366 }
1364 1367
1365 } // namespace webrtc 1368 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698