OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ACMVADMode vad_mode = VADNormal; | 205 ACMVADMode vad_mode = VADNormal; |
206 | 206 |
207 // Maps from RTP timestamp rate (in Hz) to payload type. | 207 // Maps from RTP timestamp rate (in Hz) to payload type. |
208 std::map<int, int> cng_payload_types; | 208 std::map<int, int> cng_payload_types; |
209 std::map<int, int> red_payload_types; | 209 std::map<int, int> red_payload_types; |
210 }; | 210 }; |
211 | 211 |
212 // Creates and returns an audio encoder stack constructed to the given | 212 // Creates and returns an audio encoder stack constructed to the given |
213 // specification. If the specification isn't compatible with the encoder, it | 213 // specification. If the specification isn't compatible with the encoder, it |
214 // will be changed to match (things will be switched off). The speech encoder | 214 // will be changed to match (things will be switched off). The speech encoder |
215 // will be stolen. | 215 // will be stolen. If the specification isn't complete, returns nullptr. |
216 std::unique_ptr<AudioEncoder> RentEncoderStack(StackParameters* param); | 216 std::unique_ptr<AudioEncoder> RentEncoderStack(StackParameters* param); |
217 | 217 |
218 // Creates and returns an iSAC decoder. | 218 // Creates and returns an iSAC decoder. |
219 std::unique_ptr<AudioDecoder> RentIsacDecoder(); | 219 std::unique_ptr<AudioDecoder> RentIsacDecoder(); |
220 | 220 |
221 private: | 221 private: |
222 std::unique_ptr<AudioEncoder> speech_encoder_; | 222 std::unique_ptr<AudioEncoder> speech_encoder_; |
223 std::unique_ptr<AudioEncoder> cng_encoder_; | 223 std::unique_ptr<AudioEncoder> cng_encoder_; |
224 std::unique_ptr<AudioEncoder> red_encoder_; | 224 std::unique_ptr<AudioEncoder> red_encoder_; |
225 rtc::scoped_refptr<LockedIsacBandwidthInfo> isac_bandwidth_info_; | 225 rtc::scoped_refptr<LockedIsacBandwidthInfo> isac_bandwidth_info_; |
226 | 226 |
227 RTC_DISALLOW_COPY_AND_ASSIGN(RentACodec); | 227 RTC_DISALLOW_COPY_AND_ASSIGN(RentACodec); |
228 }; | 228 }; |
229 | 229 |
230 } // namespace acm2 | 230 } // namespace acm2 |
231 } // namespace webrtc | 231 } // namespace webrtc |
232 | 232 |
233 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_RENT_A_CODEC_H_ | 233 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_RENT_A_CODEC_H_ |
OLD | NEW |