OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } else { | 123 } else { |
124 return false; | 124 return false; |
125 } | 125 } |
126 }}, | 126 }}, |
127 #ifdef WEBRTC_CODEC_G722 | 127 #ifdef WEBRTC_CODEC_G722 |
128 {"g722", | 128 {"g722", |
129 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { | 129 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { |
130 if (format.clockrate_hz == 8000) { | 130 if (format.clockrate_hz == 8000) { |
131 if (format.num_channels == 1) { | 131 if (format.num_channels == 1) { |
132 if (out) { | 132 if (out) { |
133 out->reset(new AudioDecoderG722); | 133 out->reset(new AudioDecoderG722Impl); |
134 } | 134 } |
135 return true; | 135 return true; |
136 } else if (format.num_channels == 2) { | 136 } else if (format.num_channels == 2) { |
137 if (out) { | 137 if (out) { |
138 out->reset(new AudioDecoderG722Stereo); | 138 out->reset(new AudioDecoderG722Stereo); |
139 } | 139 } |
140 return true; | 140 return true; |
141 } | 141 } |
142 } | 142 } |
143 return false; | 143 return false; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 } // namespace | 249 } // namespace |
250 | 250 |
251 rtc::scoped_refptr<AudioDecoderFactory> | 251 rtc::scoped_refptr<AudioDecoderFactory> |
252 CreateBuiltinAudioDecoderFactoryInternal() { | 252 CreateBuiltinAudioDecoderFactoryInternal() { |
253 return rtc::scoped_refptr<AudioDecoderFactory>( | 253 return rtc::scoped_refptr<AudioDecoderFactory>( |
254 new rtc::RefCountedObject<BuiltinAudioDecoderFactory>); | 254 new rtc::RefCountedObject<BuiltinAudioDecoderFactory>); |
255 } | 255 } |
256 | 256 |
257 } // namespace webrtc | 257 } // namespace webrtc |
OLD | NEW |