OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Gets the current sound card buffer size (playout delay). | 57 // Gets the current sound card buffer size (playout delay). |
58 virtual int GetPlayoutBufferSize(int& buffer_ms) = 0; | 58 virtual int GetPlayoutBufferSize(int& buffer_ms) = 0; |
59 | 59 |
60 // Sets a minimum target delay for the jitter buffer. This delay is | 60 // Sets a minimum target delay for the jitter buffer. This delay is |
61 // maintained by the jitter buffer, unless channel condition (jitter in | 61 // maintained by the jitter buffer, unless channel condition (jitter in |
62 // inter-arrival times) dictates a higher required delay. The overall | 62 // inter-arrival times) dictates a higher required delay. The overall |
63 // jitter buffer delay is max of |delay_ms| and the latency that NetEq | 63 // jitter buffer delay is max of |delay_ms| and the latency that NetEq |
64 // computes based on inter-arrival times and its playout mode. | 64 // computes based on inter-arrival times and its playout mode. |
65 virtual int SetMinimumPlayoutDelay(int channel, int delay_ms) = 0; | 65 virtual int SetMinimumPlayoutDelay(int channel, int delay_ms) = 0; |
66 | 66 |
67 // Sets an initial delay for the playout jitter buffer. The playout of the | |
68 // audio is delayed by |delay_ms| in milliseconds. Thereafter, the delay is | |
69 // maintained, unless NetEq's internal mechanism requires a higher latency. | |
70 // Such a latency is computed based on inter-arrival times and NetEq's | |
71 // playout mode. | |
72 virtual int SetInitialPlayoutDelay(int channel, int delay_ms) = 0; | |
73 | |
74 // Gets the |jitter_buffer_delay_ms| (including the algorithmic delay), and | 67 // Gets the |jitter_buffer_delay_ms| (including the algorithmic delay), and |
75 // the |playout_buffer_delay_ms| for a specified |channel|. | 68 // the |playout_buffer_delay_ms| for a specified |channel|. |
76 virtual int GetDelayEstimate(int channel, | 69 virtual int GetDelayEstimate(int channel, |
77 int* jitter_buffer_delay_ms, | 70 int* jitter_buffer_delay_ms, |
78 int* playout_buffer_delay_ms) = 0; | 71 int* playout_buffer_delay_ms) = 0; |
79 | 72 |
80 // Returns the least required jitter buffer delay. This is computed by the | 73 // Returns the least required jitter buffer delay. This is computed by the |
81 // the jitter buffer based on the inter-arrival time of RTP packets and | 74 // the jitter buffer based on the inter-arrival time of RTP packets and |
82 // playout mode. NetEq maintains this latency unless a higher value is | 75 // playout mode. NetEq maintains this latency unless a higher value is |
83 // requested by calling SetMinimumPlayoutDelay(). | 76 // requested by calling SetMinimumPlayoutDelay(). |
(...skipping 13 matching lines...) Expand all Loading... |
97 RtpReceiver** rtp_receiver) = 0; | 90 RtpReceiver** rtp_receiver) = 0; |
98 | 91 |
99 protected: | 92 protected: |
100 VoEVideoSync() {} | 93 VoEVideoSync() {} |
101 virtual ~VoEVideoSync() {} | 94 virtual ~VoEVideoSync() {} |
102 }; | 95 }; |
103 | 96 |
104 } // namespace webrtc | 97 } // namespace webrtc |
105 | 98 |
106 #endif // #ifndef WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_H | 99 #endif // #ifndef WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_H |
OLD | NEW |