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

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 2582043002: Fixing init time error in smoothing filter. (Closed)
Patch Set: fixing Created 4 years 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 restored_packet_in_use_(false), 918 restored_packet_in_use_(false),
919 rtcp_observer_(new VoERtcpObserver(this)), 919 rtcp_observer_(new VoERtcpObserver(this)),
920 associate_send_channel_(ChannelOwner(nullptr)), 920 associate_send_channel_(ChannelOwner(nullptr)),
921 pacing_enabled_(config.enable_voice_pacing), 921 pacing_enabled_(config.enable_voice_pacing),
922 feedback_observer_proxy_(new TransportFeedbackProxy()), 922 feedback_observer_proxy_(new TransportFeedbackProxy()),
923 seq_num_allocator_proxy_(new TransportSequenceNumberProxy()), 923 seq_num_allocator_proxy_(new TransportSequenceNumberProxy()),
924 rtp_packet_sender_proxy_(new RtpPacketSenderProxy()), 924 rtp_packet_sender_proxy_(new RtpPacketSenderProxy()),
925 retransmission_rate_limiter_(new RateLimiter(Clock::GetRealTimeClock(), 925 retransmission_rate_limiter_(new RateLimiter(Clock::GetRealTimeClock(),
926 kMaxRetransmissionWindowMs)), 926 kMaxRetransmissionWindowMs)),
927 decoder_factory_(config.acm_config.decoder_factory), 927 decoder_factory_(config.acm_config.decoder_factory),
928 // Bitrate smoother can be initialized with arbitrary time constant 928 // The initialization time for bitrate smoother follows a rough estimate
929 // (0 used here). The actual time constant will be set in SetBitRate. 929 // of the probing interval of the bandwidth estimator.
930 bitrate_smoother_(0, Clock::GetRealTimeClock()) { 930 bitrate_smoother_(500, Clock::GetRealTimeClock()) {
931 WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_instanceId, _channelId), 931 WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_instanceId, _channelId),
932 "Channel::Channel() - ctor"); 932 "Channel::Channel() - ctor");
933 AudioCodingModule::Config acm_config(config.acm_config); 933 AudioCodingModule::Config acm_config(config.acm_config);
934 acm_config.id = VoEModuleId(instanceId, channelId); 934 acm_config.id = VoEModuleId(instanceId, channelId);
935 acm_config.neteq_config.enable_muted_state = true; 935 acm_config.neteq_config.enable_muted_state = true;
936 audio_coding_.reset(AudioCodingModule::Create(acm_config)); 936 audio_coding_.reset(AudioCodingModule::Create(acm_config));
937 937
938 _outputAudioLevel.Clear(); 938 _outputAudioLevel.Clear();
939 939
940 RtpRtcp::Configuration configuration; 940 RtpRtcp::Configuration configuration;
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3288 int64_t min_rtt = 0; 3288 int64_t min_rtt = 0;
3289 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3289 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3290 0) { 3290 0) {
3291 return 0; 3291 return 0;
3292 } 3292 }
3293 return rtt; 3293 return rtt;
3294 } 3294 }
3295 3295
3296 } // namespace voe 3296 } // namespace voe
3297 } // namespace webrtc 3297 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698