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

Side by Side Diff: webrtc/modules/audio_coding/neteq/include/neteq.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, 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 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 // Not implemented. 217 // Not implemented.
218 virtual int SetTargetDelay() = 0; 218 virtual int SetTargetDelay() = 0;
219 219
220 // Not implemented. 220 // Not implemented.
221 virtual int TargetDelay() = 0; 221 virtual int TargetDelay() = 0;
222 222
223 // Returns the current total delay (packet buffer and sync buffer) in ms. 223 // Returns the current total delay (packet buffer and sync buffer) in ms.
224 virtual int CurrentDelayMs() const = 0; 224 virtual int CurrentDelayMs() const = 0;
225 225
226 // Returns the current total delay (packet buffer and sync buffer) in ms,
227 // with smoothing applied to even out short-time fluctuations due to jitter.
228 // The packet buffer part of the delay is not updated during DTX/CNG periods.
229 virtual int FilteredCurrentDelayMs() const = 0;
230
226 // Sets the playout mode to |mode|. 231 // Sets the playout mode to |mode|.
227 // Deprecated. Set the mode in the Config struct passed to the constructor. 232 // Deprecated. Set the mode in the Config struct passed to the constructor.
228 // TODO(henrik.lundin) Delete. 233 // TODO(henrik.lundin) Delete.
229 virtual void SetPlayoutMode(NetEqPlayoutMode mode) = 0; 234 virtual void SetPlayoutMode(NetEqPlayoutMode mode) = 0;
230 235
231 // Returns the current playout mode. 236 // Returns the current playout mode.
232 // Deprecated. 237 // Deprecated.
233 // TODO(henrik.lundin) Delete. 238 // TODO(henrik.lundin) Delete.
234 virtual NetEqPlayoutMode PlayoutMode() const = 0; 239 virtual NetEqPlayoutMode PlayoutMode() const = 0;
235 240
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 301
297 protected: 302 protected:
298 NetEq() {} 303 NetEq() {}
299 304
300 private: 305 private:
301 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 306 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
302 }; 307 };
303 308
304 } // namespace webrtc 309 } // namespace webrtc
305 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 310 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698