| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 class Nack; | 38 class Nack; |
| 39 | 39 |
| 40 class AcmReceiver { | 40 class AcmReceiver { |
| 41 public: | 41 public: |
| 42 struct Decoder { | 42 struct Decoder { |
| 43 int acm_codec_id; | 43 int acm_codec_id; |
| 44 uint8_t payload_type; | 44 uint8_t payload_type; |
| 45 // This field is meaningful for codecs where both mono and | 45 // This field is meaningful for codecs where both mono and |
| 46 // stereo versions are registered under the same ID. | 46 // stereo versions are registered under the same ID. |
| 47 int channels; | 47 size_t channels; |
| 48 int sample_rate_hz; | 48 int sample_rate_hz; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 // Constructor of the class | 51 // Constructor of the class |
| 52 explicit AcmReceiver(const AudioCodingModule::Config& config); | 52 explicit AcmReceiver(const AudioCodingModule::Config& config); |
| 53 | 53 |
| 54 // Destructor of the class. | 54 // Destructor of the class. |
| 55 ~AcmReceiver(); | 55 ~AcmReceiver(); |
| 56 | 56 |
| 57 // | 57 // |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // decoder instance of the codec. This is essential | 107 // decoder instance of the codec. This is essential |
| 108 // for a codec like iSAC which encoder/decoder | 108 // for a codec like iSAC which encoder/decoder |
| 109 // encoder has to know about decoder (bandwidth | 109 // encoder has to know about decoder (bandwidth |
| 110 // estimator that is updated at decoding time). | 110 // estimator that is updated at decoding time). |
| 111 // | 111 // |
| 112 // Return value : 0 if OK. | 112 // Return value : 0 if OK. |
| 113 // <0 if NetEq returned an error. | 113 // <0 if NetEq returned an error. |
| 114 // | 114 // |
| 115 int AddCodec(int acm_codec_id, | 115 int AddCodec(int acm_codec_id, |
| 116 uint8_t payload_type, | 116 uint8_t payload_type, |
| 117 int channels, | 117 size_t channels, |
| 118 int sample_rate_hz, | 118 int sample_rate_hz, |
| 119 AudioDecoder* audio_decoder); | 119 AudioDecoder* audio_decoder); |
| 120 | 120 |
| 121 // | 121 // |
| 122 // Sets a minimum delay for packet buffer. The given delay is maintained, | 122 // Sets a minimum delay for packet buffer. The given delay is maintained, |
| 123 // unless channel condition dictates a higher delay. | 123 // unless channel condition dictates a higher delay. |
| 124 // | 124 // |
| 125 // Input: | 125 // Input: |
| 126 // - delay_ms : minimum delay in milliseconds. | 126 // - delay_ms : minimum delay in milliseconds. |
| 127 // | 127 // |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // initial delay is set. | 355 // initial delay is set. |
| 356 rtc::scoped_ptr<InitialDelayManager::SyncStream> missing_packets_sync_stream_; | 356 rtc::scoped_ptr<InitialDelayManager::SyncStream> missing_packets_sync_stream_; |
| 357 rtc::scoped_ptr<InitialDelayManager::SyncStream> late_packets_sync_stream_; | 357 rtc::scoped_ptr<InitialDelayManager::SyncStream> late_packets_sync_stream_; |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 } // namespace acm2 | 360 } // namespace acm2 |
| 361 | 361 |
| 362 } // namespace webrtc | 362 } // namespace webrtc |
| 363 | 363 |
| 364 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVER_H_ | 364 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVER_H_ |
| OLD | NEW |