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 | |
189 // Sets a minimum delay in millisecond for packet buffer. The minimum is | 186 // Sets a minimum delay in millisecond for packet buffer. The minimum is |
190 // maintained unless a higher latency is dictated by channel condition. | 187 // maintained unless a higher latency is dictated by channel condition. |
191 // Returns true if the minimum is successfully applied, otherwise false is | 188 // Returns true if the minimum is successfully applied, otherwise false is |
192 // returned. | 189 // returned. |
193 virtual bool SetMinimumDelay(int delay_ms) = 0; | 190 virtual bool SetMinimumDelay(int delay_ms) = 0; |
194 | 191 |
195 // Sets a maximum delay in milliseconds for packet buffer. The latency will | 192 // Sets a maximum delay in milliseconds for packet buffer. The latency will |
196 // not exceed the given value, even required delay (given the channel | 193 // not exceed the given value, even required delay (given the channel |
197 // conditions) is higher. Calling this method has the same effect as setting | 194 // conditions) is higher. Calling this method has the same effect as setting |
198 // the |max_delay_ms| value in the NetEq::Config struct. | 195 // the |max_delay_ms| value in the NetEq::Config struct. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 290 |
294 protected: | 291 protected: |
295 NetEq() {} | 292 NetEq() {} |
296 | 293 |
297 private: | 294 private: |
298 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 295 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); |
299 }; | 296 }; |
300 | 297 |
301 } // namespace webrtc | 298 } // namespace webrtc |
302 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 299 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ |
OLD | NEW |