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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } else { | 84 } else { |
85 return false; | 85 return false; |
86 } | 86 } |
87 }}, | 87 }}, |
88 #endif | 88 #endif |
89 #if defined(WEBRTC_CODEC_ISACFX) | 89 #if defined(WEBRTC_CODEC_ISACFX) |
90 {"isac", | 90 {"isac", |
91 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { | 91 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { |
92 if (format.clockrate_hz == 16000 && format.num_channels == 1) { | 92 if (format.clockrate_hz == 16000 && format.num_channels == 1) { |
93 if (out) { | 93 if (out) { |
94 out->reset(new AudioDecoderIsacFix(format.clockrate_hz)); | 94 out->reset(new AudioDecoderIsacFixImpl(format.clockrate_hz)); |
95 } | 95 } |
96 return true; | 96 return true; |
97 } else { | 97 } else { |
98 return false; | 98 return false; |
99 } | 99 } |
100 }}, | 100 }}, |
101 #elif defined(WEBRTC_CODEC_ISAC) | 101 #elif defined(WEBRTC_CODEC_ISAC) |
102 {"isac", | 102 {"isac", |
103 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { | 103 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { |
104 if ((format.clockrate_hz == 16000 || format.clockrate_hz == 32000) && | 104 if ((format.clockrate_hz == 16000 || format.clockrate_hz == 32000) && |
105 format.num_channels == 1) { | 105 format.num_channels == 1) { |
106 if (out) { | 106 if (out) { |
107 out->reset(new AudioDecoderIsac(format.clockrate_hz)); | 107 out->reset(new AudioDecoderIsacFloatImpl(format.clockrate_hz)); |
108 } | 108 } |
109 return true; | 109 return true; |
110 } else { | 110 } else { |
111 return false; | 111 return false; |
112 } | 112 } |
113 }}, | 113 }}, |
114 #endif | 114 #endif |
115 {"l16", | 115 {"l16", |
116 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { | 116 [](const SdpAudioFormat& format, std::unique_ptr<AudioDecoder>* out) { |
117 if (format.num_channels >= 1) { | 117 if (format.num_channels >= 1) { |
(...skipping 130 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 |