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

Side by Side Diff: webrtc/modules/audio_coding/acm2/acm_receiver.h

Issue 2262203002: Add NetEq::FilteredCurrentDelayMs() and use it in VoiceEngine (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 3 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 // 195 //
196 // Remove all registered codecs. 196 // Remove all registered codecs.
197 // 197 //
198 int RemoveAllCodecs(); 198 int RemoveAllCodecs();
199 199
200 // Returns the RTP timestamp for the last sample delivered by GetAudio(). 200 // Returns the RTP timestamp for the last sample delivered by GetAudio().
201 // The return value will be empty if no valid timestamp is available. 201 // The return value will be empty if no valid timestamp is available.
202 rtc::Optional<uint32_t> GetPlayoutTimestamp(); 202 rtc::Optional<uint32_t> GetPlayoutTimestamp();
203 203
204 // Returns the current total delay from NetEq (packet buffer and sync buffer)
205 // in ms, with smoothing applied to even out short-time fluctuations due to
206 // jitter. The packet buffer part of the delay is not updated during DTX/CNG
207 // periods.
208 //
209 int FilteredCurrentDelayMs() const;
210
204 // 211 //
205 // Get the audio codec associated with the last non-CNG/non-DTMF received 212 // Get the audio codec associated with the last non-CNG/non-DTMF received
206 // payload. If no non-CNG/non-DTMF packet is received -1 is returned, 213 // payload. If no non-CNG/non-DTMF packet is received -1 is returned,
207 // otherwise return 0. 214 // otherwise return 0.
208 // 215 //
209 int LastAudioCodec(CodecInst* codec) const; 216 int LastAudioCodec(CodecInst* codec) const;
210 217
211 // 218 //
212 // Get a decoder given its registered payload-type. 219 // Get a decoder given its registered payload-type.
213 // 220 //
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 Clock* clock_; // TODO(henrik.lundin) Make const if possible. 279 Clock* clock_; // TODO(henrik.lundin) Make const if possible.
273 bool resampled_last_output_frame_ GUARDED_BY(crit_sect_); 280 bool resampled_last_output_frame_ GUARDED_BY(crit_sect_);
274 rtc::Optional<int> last_packet_sample_rate_hz_ GUARDED_BY(crit_sect_); 281 rtc::Optional<int> last_packet_sample_rate_hz_ GUARDED_BY(crit_sect_);
275 }; 282 };
276 283
277 } // namespace acm2 284 } // namespace acm2
278 285
279 } // namespace webrtc 286 } // namespace webrtc
280 287
281 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_ACM_RECEIVER_H_ 288 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_ACM_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/acm2/acm_receiver.cc » ('j') | webrtc/voice_engine/channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698