API to control target delay in NetEq jitter buffer. NetEq maintains the given delay unless channel conditions require a higher delay.
TEST=unit-test, manual, trybots. R=henrik.lundin@webrtc.org, henrika@webrtc.org, mflodman@webrtc.org, mikhal@webrtc.org, stefan@webrtc.org, tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1384005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4087 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -639,8 +639,9 @@ class AudioCodingModule: public Module {
|
||||
const uint32_t timestamp = 0) = 0;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// int32_t SetMinimumPlayoutDelay()
|
||||
// Set Minimum playout delay, used for lip-sync.
|
||||
// int SetMinimumPlayoutDelay()
|
||||
// Set a minimum for the playout delay, used for lip-sync. NetEq maintains
|
||||
// such a delay unless channel condition yields to a higher delay.
|
||||
//
|
||||
// Input:
|
||||
// -time_ms : minimum delay in milliseconds.
|
||||
@ -649,7 +650,15 @@ class AudioCodingModule: public Module {
|
||||
// -1 if failed to set the delay,
|
||||
// 0 if the minimum delay is set.
|
||||
//
|
||||
virtual int32_t SetMinimumPlayoutDelay(const int32_t time_ms) = 0;
|
||||
virtual int SetMinimumPlayoutDelay(int time_ms) = 0;
|
||||
|
||||
//
|
||||
// The shortest latency, in milliseconds, required by jitter buffer. This
|
||||
// is computed based on inter-arrival times and playout mode of NetEq. The
|
||||
// actual delay is the maximum of least-required-delay and the minimum-delay
|
||||
// specified by SetMinumumPlayoutDelay() API.
|
||||
//
|
||||
virtual int LeastRequiredDelayMs() const = 0;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// int32_t RegisterIncomingMessagesCallback()
|
||||
@ -945,8 +954,9 @@ class AudioCodingModule: public Module {
|
||||
// Set an initial delay for playout.
|
||||
// An initial delay yields ACM playout silence until equivalent of |delay_ms|
|
||||
// audio payload is accumulated in NetEq jitter. Thereafter, ACM pulls audio
|
||||
// from NetEq in its regular fashion, and the given delay is maintained as
|
||||
// "minimum playout delay."
|
||||
// from NetEq in its regular fashion, and the given delay is maintained
|
||||
// through out the call, unless channel conditions yield to a higher jitter
|
||||
// buffer delay.
|
||||
//
|
||||
// Input:
|
||||
// -delay_ms : delay in milliseconds.
|
||||
|
Reference in New Issue
Block a user