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

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

Issue 2348233002: AcmReceiver: Ask NetEq to delete all decoders at once instead of one by one (Closed)
Patch Set: unit tests 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // may be empty. 176 // may be empty.
177 virtual int RegisterExternalDecoder(AudioDecoder* decoder, 177 virtual int RegisterExternalDecoder(AudioDecoder* decoder,
178 NetEqDecoder codec, 178 NetEqDecoder codec,
179 const std::string& codec_name, 179 const std::string& codec_name,
180 uint8_t rtp_payload_type) = 0; 180 uint8_t rtp_payload_type) = 0;
181 181
182 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, 182 // Removes |rtp_payload_type| from the codec database. Returns 0 on success,
183 // -1 on failure. 183 // -1 on failure.
184 virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; 184 virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0;
185 185
186 // Removes all payload types from the codec database.
187 virtual void RemoveAllPayloadTypes() = 0;
188
186 // Sets a minimum delay in millisecond for packet buffer. The minimum is 189 // Sets a minimum delay in millisecond for packet buffer. The minimum is
187 // maintained unless a higher latency is dictated by channel condition. 190 // maintained unless a higher latency is dictated by channel condition.
188 // Returns true if the minimum is successfully applied, otherwise false is 191 // Returns true if the minimum is successfully applied, otherwise false is
189 // returned. 192 // returned.
190 virtual bool SetMinimumDelay(int delay_ms) = 0; 193 virtual bool SetMinimumDelay(int delay_ms) = 0;
191 194
192 // Sets a maximum delay in milliseconds for packet buffer. The latency will 195 // Sets a maximum delay in milliseconds for packet buffer. The latency will
193 // not exceed the given value, even required delay (given the channel 196 // not exceed the given value, even required delay (given the channel
194 // conditions) is higher. Calling this method has the same effect as setting 197 // conditions) is higher. Calling this method has the same effect as setting
195 // the |max_delay_ms| value in the NetEq::Config struct. 198 // the |max_delay_ms| value in the NetEq::Config struct.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 295
293 protected: 296 protected:
294 NetEq() {} 297 NetEq() {}
295 298
296 private: 299 private:
297 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); 300 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq);
298 }; 301 };
299 302
300 } // namespace webrtc 303 } // namespace webrtc
301 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ 304 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698