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

Side by Side Diff: webrtc/modules/audio_coding/include/audio_coding_module.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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 /////////////////////////////////////////////////////////////////////////// 672 ///////////////////////////////////////////////////////////////////////////
673 // int32_t PlayoutTimestamp() 673 // int32_t PlayoutTimestamp()
674 // The send timestamp of an RTP packet is associated with the decoded 674 // The send timestamp of an RTP packet is associated with the decoded
675 // audio of the packet in question. This function returns the timestamp of 675 // audio of the packet in question. This function returns the timestamp of
676 // the latest audio obtained by calling PlayoutData10ms(), or empty if no 676 // the latest audio obtained by calling PlayoutData10ms(), or empty if no
677 // valid timestamp is available. 677 // valid timestamp is available.
678 // 678 //
679 virtual rtc::Optional<uint32_t> PlayoutTimestamp() = 0; 679 virtual rtc::Optional<uint32_t> PlayoutTimestamp() = 0;
680 680
681 /////////////////////////////////////////////////////////////////////////// 681 ///////////////////////////////////////////////////////////////////////////
682 // int FilteredCurrentDelayMs()
683 // Returns the current total delay from NetEq (packet buffer and sync buffer)
684 // in ms, with smoothing applied to even out short-time fluctuations due to
685 // jitter. The packet buffer part of the delay is not updated during DTX/CNG
686 // periods.
687 //
688 virtual int FilteredCurrentDelayMs() const = 0;
689
690 ///////////////////////////////////////////////////////////////////////////
682 // int32_t PlayoutData10Ms( 691 // int32_t PlayoutData10Ms(
683 // Get 10 milliseconds of raw audio data for playout, at the given sampling 692 // Get 10 milliseconds of raw audio data for playout, at the given sampling
684 // frequency. ACM will perform a resampling if required. 693 // frequency. ACM will perform a resampling if required.
685 // 694 //
686 // Input: 695 // Input:
687 // -desired_freq_hz : the desired sampling frequency, in Hertz, of the 696 // -desired_freq_hz : the desired sampling frequency, in Hertz, of the
688 // output audio. If set to -1, the function returns 697 // output audio. If set to -1, the function returns
689 // the audio at the current sampling frequency. 698 // the audio at the current sampling frequency.
690 // 699 //
691 // Output: 700 // Output:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 virtual std::vector<uint16_t> GetNackList( 825 virtual std::vector<uint16_t> GetNackList(
817 int64_t round_trip_time_ms) const = 0; 826 int64_t round_trip_time_ms) const = 0;
818 827
819 virtual void GetDecodingCallStatistics( 828 virtual void GetDecodingCallStatistics(
820 AudioDecodingCallStats* call_stats) const = 0; 829 AudioDecodingCallStats* call_stats) const = 0;
821 }; 830 };
822 831
823 } // namespace webrtc 832 } // namespace webrtc
824 833
825 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ 834 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698