| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 168   // |samples_per_channel| elements. If more than one channel is written, | 168   // |samples_per_channel| elements. If more than one channel is written, | 
| 169   // the samples are interleaved. | 169   // the samples are interleaved. | 
| 170   // The speech type is written to |type|, if |type| is not NULL. | 170   // The speech type is written to |type|, if |type| is not NULL. | 
| 171   // Returns kOK on success, or kFail in case of an error. | 171   // Returns kOK on success, or kFail in case of an error. | 
| 172   virtual int GetAudio(size_t max_length, int16_t* output_audio, | 172   virtual int GetAudio(size_t max_length, int16_t* output_audio, | 
| 173                        size_t* samples_per_channel, int* num_channels, | 173                        size_t* samples_per_channel, int* num_channels, | 
| 174                        NetEqOutputType* type) = 0; | 174                        NetEqOutputType* type) = 0; | 
| 175 | 175 | 
| 176   // Associates |rtp_payload_type| with |codec| and stores the information in | 176   // Associates |rtp_payload_type| with |codec| and stores the information in | 
| 177   // the codec database. Returns 0 on success, -1 on failure. | 177   // the codec database. Returns 0 on success, -1 on failure. | 
| 178   virtual int RegisterPayloadType(enum NetEqDecoder codec, | 178   virtual int RegisterPayloadType(NetEqDecoder codec, | 
| 179                                   uint8_t rtp_payload_type) = 0; | 179                                   uint8_t rtp_payload_type) = 0; | 
| 180 | 180 | 
| 181   // Provides an externally created decoder object |decoder| to insert in the | 181   // Provides an externally created decoder object |decoder| to insert in the | 
| 182   // decoder database. The decoder implements a decoder of type |codec| and | 182   // decoder database. The decoder implements a decoder of type |codec| and | 
| 183   // associates it with |rtp_payload_type|. The decoder will produce samples | 183   // associates it with |rtp_payload_type|. The decoder will produce samples | 
| 184   // at the rate |sample_rate_hz|. Returns kOK on success, kFail on failure. | 184   // at the rate |sample_rate_hz|. Returns kOK on success, kFail on failure. | 
| 185   virtual int RegisterExternalDecoder(AudioDecoder* decoder, | 185   virtual int RegisterExternalDecoder(AudioDecoder* decoder, | 
| 186                                       enum NetEqDecoder codec, | 186                                       NetEqDecoder codec, | 
| 187                                       uint8_t rtp_payload_type, | 187                                       uint8_t rtp_payload_type, | 
| 188                                       int sample_rate_hz) = 0; | 188                                       int sample_rate_hz) = 0; | 
| 189 | 189 | 
| 190   // Removes |rtp_payload_type| from the codec database. Returns 0 on success, | 190   // Removes |rtp_payload_type| from the codec database. Returns 0 on success, | 
| 191   // -1 on failure. | 191   // -1 on failure. | 
| 192   virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; | 192   virtual int RemovePayloadType(uint8_t rtp_payload_type) = 0; | 
| 193 | 193 | 
| 194   // Sets a minimum delay in millisecond for packet buffer. The minimum is | 194   // Sets a minimum delay in millisecond for packet buffer. The minimum is | 
| 195   // maintained unless a higher latency is dictated by channel condition. | 195   // maintained unless a higher latency is dictated by channel condition. | 
| 196   // Returns true if the minimum is successfully applied, otherwise false is | 196   // Returns true if the minimum is successfully applied, otherwise false is | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 279 | 279 | 
| 280  protected: | 280  protected: | 
| 281   NetEq() {} | 281   NetEq() {} | 
| 282 | 282 | 
| 283  private: | 283  private: | 
| 284   RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 284   RTC_DISALLOW_COPY_AND_ASSIGN(NetEq); | 
| 285 }; | 285 }; | 
| 286 | 286 | 
| 287 }  // namespace webrtc | 287 }  // namespace webrtc | 
| 288 #endif  // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 288 #endif  // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INCLUDE_NETEQ_H_ | 
| OLD | NEW | 
|---|