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: Clarified comments. Created 4 years, 2 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 // Informs the delay manager whether or not the last decoded packet contained
95 // speech.
96 virtual void LastDecodedWasCngOrDtmf(bool it_was);
95 97
96 // Accessors and mutators. 98 // Accessors and mutators.
97 // Assuming |delay| is in valid range. 99 // Assuming |delay| is in valid range.
98 virtual bool SetMinimumDelay(int delay_ms); 100 virtual bool SetMinimumDelay(int delay_ms);
99 virtual bool SetMaximumDelay(int delay_ms); 101 virtual bool SetMaximumDelay(int delay_ms);
100 virtual int least_required_delay_ms() const; 102 virtual int least_required_delay_ms() const;
101 virtual int base_target_level() const; 103 virtual int base_target_level() const;
102 virtual void set_streaming_mode(bool value); 104 virtual void set_streaming_mode(bool value);
103 virtual int last_pack_cng_or_dtmf() const; 105 virtual int last_pack_cng_or_dtmf() const;
104 virtual void set_last_pack_cng_or_dtmf(int value); 106 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. 160 // Time elapsed since maximum was observed.
159 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_; 161 std::unique_ptr<TickTimer::Stopwatch> max_iat_stopwatch_;
160 DelayPeakDetector& peak_detector_; 162 DelayPeakDetector& peak_detector_;
161 int last_pack_cng_or_dtmf_; 163 int last_pack_cng_or_dtmf_;
162 164
163 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager); 165 RTC_DISALLOW_COPY_AND_ASSIGN(DelayManager);
164 }; 166 };
165 167
166 } // namespace webrtc 168 } // namespace webrtc
167 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_ 169 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_DELAY_MANAGER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/decoder_database_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/delay_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698