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

Side by Side Diff: webrtc/modules/audio_coding/neteq/delay_manager.h

Issue 2355503002: Stopped using the NetEqDecoder enum internally in NetEq. (Closed)
Patch Set: Created 4 years, 3 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Writes the lower and higher limits which the buffer level should stay 85 // Writes the lower and higher limits which the buffer level should stay
86 // within to the corresponding pointers. The values are in (fractions of) 86 // within to the corresponding pointers. The values are in (fractions of)
87 // packets in Q8. 87 // packets in Q8.
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 virtual void LastDecoderType(NetEqDecoder decoder_type); 94 virtual void LastDecodedWasCngOrDtmf(bool it_was);
kwiberg-webrtc 2016/09/20 16:05:43 Please document what this function does.
ossu 2016/09/21 09:10:56 I'll try to figure it out.
95 95
96 // Accessors and mutators. 96 // Accessors and mutators.
97 // Assuming |delay| is in valid range. 97 // Assuming |delay| is in valid range.
98 virtual bool SetMinimumDelay(int delay_ms); 98 virtual bool SetMinimumDelay(int delay_ms);
99 virtual bool SetMaximumDelay(int delay_ms); 99 virtual bool SetMaximumDelay(int delay_ms);
100 virtual int least_required_delay_ms() const; 100 virtual int least_required_delay_ms() const;
101 virtual int base_target_level() const; 101 virtual int base_target_level() const;
102 virtual void set_streaming_mode(bool value); 102 virtual void set_streaming_mode(bool value);
103 virtual int last_pack_cng_or_dtmf() const; 103 virtual int last_pack_cng_or_dtmf() const;
104 virtual void set_last_pack_cng_or_dtmf(int value); 104 virtual void set_last_pack_cng_or_dtmf(int value);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Time elapsed since maximum was observed. 158 // Time elapsed since maximum was observed.
159 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_; 159 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_;
160 DelayPeakDetector& peak_detector_; 160 DelayPeakDetector& peak_detector_;
161 int last_pack_cng_or_dtmf_; 161 int last_pack_cng_or_dtmf_;
162 162
163 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager); 163 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager);
164 }; 164 };
165 165
166 } // namespace webrtc 166 } // namespace webrtc
167 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_ 167 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698