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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 293 |
291 protected: | 294 protected: |
292 NetEq() {} | 295 NetEq() {} |
293 | 296 |
294 private: | 297 private: |
295 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 298 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); |
296 }; | 299 }; |
297 | 300 |
298 } // namespace webrtc | 301 } // namespace webrtc |
299 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 302 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ |
OLD | NEW |