| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 return std::unique_ptr<AudioEncoder>( | 156 return std::unique_ptr<AudioEncoder>( |
| 157 new AudioEncoderIsacFix(speech_inst, bwinfo)); | 157 new AudioEncoderIsacFix(speech_inst, bwinfo)); |
| 158 #endif | 158 #endif |
| 159 #if defined(WEBRTC_CODEC_ISAC) | 159 #if defined(WEBRTC_CODEC_ISAC) |
| 160 if (STR_CASE_CMP(speech_inst.plname, "isac") == 0) | 160 if (STR_CASE_CMP(speech_inst.plname, "isac") == 0) |
| 161 return std::unique_ptr<AudioEncoder>( | 161 return std::unique_ptr<AudioEncoder>( |
| 162 new AudioEncoderIsac(speech_inst, bwinfo)); | 162 new AudioEncoderIsac(speech_inst, bwinfo)); |
| 163 #endif | 163 #endif |
| 164 #ifdef WEBRTC_CODEC_OPUS | 164 #ifdef WEBRTC_CODEC_OPUS |
| 165 if (STR_CASE_CMP(speech_inst.plname, "opus") == 0) | 165 if (STR_CASE_CMP(speech_inst.plname, "opus") == 0) |
| 166 return std::unique_ptr<AudioEncoder>(new AudioEncoderOpus(speech_inst)); | 166 return std::unique_ptr<AudioEncoder>(new AudioEncoderOpusImpl(speech_inst)); |
| 167 #endif | 167 #endif |
| 168 if (STR_CASE_CMP(speech_inst.plname, "pcmu") == 0) | 168 if (STR_CASE_CMP(speech_inst.plname, "pcmu") == 0) |
| 169 return std::unique_ptr<AudioEncoder>(new AudioEncoderPcmU(speech_inst)); | 169 return std::unique_ptr<AudioEncoder>(new AudioEncoderPcmU(speech_inst)); |
| 170 if (STR_CASE_CMP(speech_inst.plname, "pcma") == 0) | 170 if (STR_CASE_CMP(speech_inst.plname, "pcma") == 0) |
| 171 return std::unique_ptr<AudioEncoder>(new AudioEncoderPcmA(speech_inst)); | 171 return std::unique_ptr<AudioEncoder>(new AudioEncoderPcmA(speech_inst)); |
| 172 if (STR_CASE_CMP(speech_inst.plname, "l16") == 0) | 172 if (STR_CASE_CMP(speech_inst.plname, "l16") == 0) |
| 173 return std::unique_ptr<AudioEncoder>(new AudioEncoderPcm16B(speech_inst)); | 173 return std::unique_ptr<AudioEncoder>(new AudioEncoderPcm16B(speech_inst)); |
| 174 #ifdef WEBRTC_CODEC_ILBC | 174 #ifdef WEBRTC_CODEC_ILBC |
| 175 if (STR_CASE_CMP(speech_inst.plname, "ilbc") == 0) | 175 if (STR_CASE_CMP(speech_inst.plname, "ilbc") == 0) |
| 176 return std::unique_ptr<AudioEncoder>(new AudioEncoderIlbc(speech_inst)); | 176 return std::unique_ptr<AudioEncoder>(new AudioEncoderIlbc(speech_inst)); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 } | 305 } |
| 306 return encoder_stack; | 306 return encoder_stack; |
| 307 } | 307 } |
| 308 | 308 |
| 309 std::unique_ptr<AudioDecoder> RentACodec::RentIsacDecoder(int sample_rate_hz) { | 309 std::unique_ptr<AudioDecoder> RentACodec::RentIsacDecoder(int sample_rate_hz) { |
| 310 return CreateIsacDecoder(sample_rate_hz, isac_bandwidth_info_); | 310 return CreateIsacDecoder(sample_rate_hz, isac_bandwidth_info_); |
| 311 } | 311 } |
| 312 | 312 |
| 313 } // namespace acm2 | 313 } // namespace acm2 |
| 314 } // namespace webrtc | 314 } // namespace webrtc |
| OLD | NEW |