OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 // Load iLBC. | 311 // Load iLBC. |
312 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderILBC, 102)); | 312 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderILBC, 102)); |
313 #endif | 313 #endif |
314 #if defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX) | 314 #if defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX) |
315 // Load iSAC. | 315 // Load iSAC. |
316 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderISAC, 103)); | 316 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderISAC, 103)); |
317 #endif | 317 #endif |
318 #ifdef WEBRTC_CODEC_ISAC | 318 #ifdef WEBRTC_CODEC_ISAC |
319 // Load iSAC SWB. | 319 // Load iSAC SWB. |
320 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderISACswb, 104)); | 320 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderISACswb, 104)); |
321 // Load iSAC FB. | |
322 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderISACfb, 105)); | |
323 #endif | 321 #endif |
324 // Load PCM16B nb. | 322 // Load PCM16B nb. |
325 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderPCM16B, 93)); | 323 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderPCM16B, 93)); |
326 // Load PCM16B wb. | 324 // Load PCM16B wb. |
327 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderPCM16Bwb, 94)); | 325 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderPCM16Bwb, 94)); |
328 // Load PCM16B swb32. | 326 // Load PCM16B swb32. |
329 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderPCM16Bswb32kHz, 95)); | 327 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderPCM16Bswb32kHz, 95)); |
330 // Load CNG 8 kHz. | 328 // Load CNG 8 kHz. |
331 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderCNGnb, 13)); | 329 ASSERT_EQ(0, neteq_->RegisterPayloadType(kDecoderCNGnb, 13)); |
332 // Load CNG 16 kHz. | 330 // Load CNG 16 kHz. |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 // Pull audio once. | 1525 // Pull audio once. |
1528 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, | 1526 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, |
1529 &num_channels, &type)); | 1527 &num_channels, &type)); |
1530 ASSERT_EQ(kBlockSize16kHz, out_len); | 1528 ASSERT_EQ(kBlockSize16kHz, out_len); |
1531 } | 1529 } |
1532 // Verify speech output. | 1530 // Verify speech output. |
1533 EXPECT_EQ(kOutputNormal, type); | 1531 EXPECT_EQ(kOutputNormal, type); |
1534 } | 1532 } |
1535 | 1533 |
1536 } // namespace webrtc | 1534 } // namespace webrtc |
OLD | NEW |