| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // decoder database. The decoder implements a decoder of type |codec| and | 171 // decoder database. The decoder implements a decoder of type |codec| and |
| 172 // associates it with |rtp_payload_type| and |codec_name|. Returns kOK on | 172 // associates it with |rtp_payload_type| and |codec_name|. Returns kOK on |
| 173 // success, kFail on failure. The name is only used to provide information | 173 // success, kFail on failure. The name is only used to provide information |
| 174 // back to the caller about the decoders. Hence, the name is arbitrary, and | 174 // back to the caller about the decoders. Hence, the name is arbitrary, and |
| 175 // may be empty. | 175 // may be empty. |
| 176 virtual int RegisterExternalDecoder(AudioDecoder* decoder, | 176 virtual int RegisterExternalDecoder(AudioDecoder* decoder, |
| 177 NetEqDecoder codec, | 177 NetEqDecoder codec, |
| 178 const std::string& codec_name, | 178 const std::string& codec_name, |
| 179 uint8_t rtp_payload_type) = 0; | 179 uint8_t rtp_payload_type) = 0; |
| 180 | 180 |
| 181 // Associates |rtp_payload_type| with the given codec, which NetEq will |
| 182 // instantiate when it needs it. Returns true iff successful. |
| 183 virtual bool RegisterPayloadType(int rtp_payload_type, |
| 184 const SdpAudioFormat& audio_format) = 0; |
| 185 |
| 181 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, | 186 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, |
| 182 // -1 on failure. | 187 // -1 on failure. |
| 183 virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; | 188 virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; |
| 184 | 189 |
| 185 // Removes all payload types from the codec database. | 190 // Removes all payload types from the codec database. |
| 186 virtual void RemoveAllPayloadTypes() = 0; | 191 virtual void RemoveAllPayloadTypes() = 0; |
| 187 | 192 |
| 188 // Sets a minimum delay in millisecond for packet buffer. The minimum is | 193 // Sets a minimum delay in millisecond for packet buffer. The minimum is |
| 189 // maintained unless a higher latency is dictated by channel condition. | 194 // maintained unless a higher latency is dictated by channel condition. |
| 190 // Returns true if the minimum is successfully applied, otherwise false is | 195 // Returns true if the minimum is successfully applied, otherwise false is |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 304 |
| 300 protected: | 305 protected: |
| 301 NetEq() {} | 306 NetEq() {} |
| 302 | 307 |
| 303 private: | 308 private: |
| 304 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 309 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); |
| 305 }; | 310 }; |
| 306 | 311 |
| 307 } // namespace webrtc | 312 } // namespace webrtc |
| 308 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 313 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ |
| OLD | NEW |