Chromium Code Reviews| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 174 size_t* samples_per_channel, int* num_channels, | 174 size_t* samples_per_channel, int* num_channels, |
| 175 NetEqOutputType* type) = 0; | 175 NetEqOutputType* type) = 0; |
| 176 | 176 |
| 177 // Associates |rtp_payload_type| with |codec| and stores the information in | 177 // Associates |rtp_payload_type| with |codec| and stores the information in |
| 178 // the codec database. Returns 0 on success, -1 on failure. | 178 // the codec database. Returns 0 on success, -1 on failure. |
| 179 virtual int RegisterPayloadType(NetEqDecoder codec, | 179 virtual int RegisterPayloadType(NetEqDecoder codec, |
| 180 uint8_t rtp_payload_type) = 0; | 180 uint8_t rtp_payload_type) = 0; |
| 181 | 181 |
| 182 // Provides an externally created decoder object |decoder| to insert in the | 182 // Provides an externally created decoder object |decoder| to insert in the |
| 183 // decoder database. The decoder implements a decoder of type |codec| and | 183 // decoder database. The decoder implements a decoder of type |codec| and |
| 184 // associates it with |rtp_payload_type|. The decoder will produce samples | 184 // associates it with |rtp_payload_type| and |codec_name|. The decoder will |
| 185 // at the rate |sample_rate_hz|. Returns kOK on success, kFail on failure. | 185 // produce samples at the rate |sample_rate_hz|. Returns kOK on success, kFail |
| 186 // on failure. | |
|
kwiberg-webrtc
2015/12/02 09:50:42
You don't explain what the name is used for. Will
hlundin-webrtc
2015/12/02 16:19:24
Done.
| |
| 186 virtual int RegisterExternalDecoder(AudioDecoder* decoder, | 187 virtual int RegisterExternalDecoder(AudioDecoder* decoder, |
| 187 NetEqDecoder codec, | 188 NetEqDecoder codec, |
| 189 const std::string& codec_name, | |
| 188 uint8_t rtp_payload_type, | 190 uint8_t rtp_payload_type, |
| 189 int sample_rate_hz) = 0; | 191 int sample_rate_hz) = 0; |
| 190 | 192 |
| 191 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, | 193 // Removes |rtp_payload_type| from the codec database. Returns 0 on success, |
| 192 // -1 on failure. | 194 // -1 on failure. |
| 193 virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; | 195 virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; |
| 194 | 196 |
| 195 // Sets a minimum delay in millisecond for packet buffer. The minimum is | 197 // Sets a minimum delay in millisecond for packet buffer. The minimum is |
| 196 // maintained unless a higher latency is dictated by channel condition. | 198 // maintained unless a higher latency is dictated by channel condition. |
| 197 // Returns true if the minimum is successfully applied, otherwise false is | 199 // Returns true if the minimum is successfully applied, otherwise false is |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 292 | 294 |
| 293 protected: | 295 protected: |
| 294 NetEq() {} | 296 NetEq() {} |
| 295 | 297 |
| 296 private: | 298 private: |
| 297 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 299 RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); |
| 298 }; | 300 }; |
| 299 | 301 |
| 300 } // namespace webrtc | 302 } // namespace webrtc |
| 301 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 303 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ |
| OLD | NEW |