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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2287243002: Add NetEq::FilteredCurrentDelayMs() and use it in VoiceEngine (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 943a04572be088689cb655578001dd533703c0b7..045f3c71f936fa301e83d5ab174fa7e68d02ab13 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -3098,11 +3098,7 @@ void Channel::GetDecodingCallStatistics(AudioDecodingCallStats* stats) const {
bool Channel::GetDelayEstimate(int* jitter_buffer_delay_ms,
int* playout_buffer_delay_ms) const {
rtc::CritScope lock(&video_sync_lock_);
- if (_average_jitter_buffer_delay_us == 0) {
- return false;
- }
- *jitter_buffer_delay_ms =
- (_average_jitter_buffer_delay_us + 500) / 1000 + _recPacketDelayMs;
+ *jitter_buffer_delay_ms = audio_coding_->FilteredCurrentDelayMs();
*playout_buffer_delay_ms = playout_delay_ms_;
return true;
}
@@ -3315,6 +3311,9 @@ void Channel::UpdatePlayoutTimestamp(bool rtcp) {
}
// Called for incoming RTP packets after successful RTP header parsing.
+// TODO(henrik.lundin): Clean out this method. With the introduction of
+// AudioCoding::FilteredCurrentDelayMs() most (if not all) of this method can
+// be deleted, along with a few member variables. (WebRTC issue 6237.)
void Channel::UpdatePacketDelay(uint32_t rtp_timestamp,
uint16_t sequence_number) {
WEBRTC_TRACE(kTraceStream, kTraceVoice, VoEId(_instanceId, _channelId),
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698