OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void BufferLimits(int* lower_limit, int* higher_limit) const; | 88 virtual void BufferLimits(int* lower_limit, int* higher_limit) const; |
89 | 89 |
90 // Gets the target buffer level, in (fractions of) packets in Q8. This value | 90 // Gets the target buffer level, in (fractions of) packets in Q8. This value |
91 // includes any extra delay set through the set_extra_delay_ms() method. | 91 // includes any extra delay set through the set_extra_delay_ms() method. |
92 virtual int TargetLevel() const; | 92 virtual int TargetLevel() const; |
93 | 93 |
94 // Informs the delay manager whether or not the last decoded packet contained | 94 // Informs the delay manager whether or not the last decoded packet contained |
95 // speech. | 95 // speech. |
96 virtual void LastDecodedWasCngOrDtmf(bool it_was); | 96 virtual void LastDecodedWasCngOrDtmf(bool it_was); |
97 | 97 |
| 98 // Notify the delay manager that empty packets have been received. These are |
| 99 // packets that are part of the sequence number series, so that an empty |
| 100 // packet will shift the sequence numbers for the following packets. |
| 101 virtual void RegisterEmptyPacket(); |
| 102 |
98 // Accessors and mutators. | 103 // Accessors and mutators. |
99 // Assuming |delay| is in valid range. | 104 // Assuming |delay| is in valid range. |
100 virtual bool SetMinimumDelay(int delay_ms); | 105 virtual bool SetMinimumDelay(int delay_ms); |
101 virtual bool SetMaximumDelay(int delay_ms); | 106 virtual bool SetMaximumDelay(int delay_ms); |
102 virtual int least_required_delay_ms() const; | 107 virtual int least_required_delay_ms() const; |
103 virtual int base_target_level() const; | 108 virtual int base_target_level() const; |
104 virtual void set_streaming_mode(bool value); | 109 virtual void set_streaming_mode(bool value); |
105 virtual int last_pack_cng_or_dtmf() const; | 110 virtual int last_pack_cng_or_dtmf() const; |
106 virtual void set_last_pack_cng_or_dtmf(int value); | 111 virtual void set_last_pack_cng_or_dtmf(int value); |
107 | 112 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Time elapsed since maximum was observed. | 165 // Time elapsed since maximum was observed. |
161 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_; | 166 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_; |
162 DelayPeakDetector& peak_detector_; | 167 DelayPeakDetector& peak_detector_; |
163 int last_pack_cng_or_dtmf_; | 168 int last_pack_cng_or_dtmf_; |
164 | 169 |
165 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager); | 170 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager); |
166 }; | 171 }; |
167 | 172 |
168 } // namespace webrtc | 173 } // namespace webrtc |
169 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_ | 174 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_ |
OLD | NEW |