OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 439 matching lines...) Loading... |
450 (packet_size_samples_ > -1)) | 450 (packet_size_samples_ > -1)) |
451 error_count++; | 451 error_count++; |
452 } | 452 } |
453 | 453 |
454 // Run received side of ACM. | 454 // Run received side of ACM. |
455 bool muted; | 455 bool muted; |
456 CHECK_ERROR(acm_b_->PlayoutData10Ms(out_freq_hz, &audio_frame, &muted)); | 456 CHECK_ERROR(acm_b_->PlayoutData10Ms(out_freq_hz, &audio_frame, &muted)); |
457 ASSERT_FALSE(muted); | 457 ASSERT_FALSE(muted); |
458 | 458 |
459 // Write output speech to file. | 459 // Write output speech to file. |
460 outfile_b_.Write10MsData(audio_frame.data_, | 460 outfile_b_.Write10MsData(audio_frame.data(), |
461 audio_frame.samples_per_channel_); | 461 audio_frame.samples_per_channel_); |
462 | 462 |
463 // Update loop counter | 463 // Update loop counter |
464 counter++; | 464 counter++; |
465 } | 465 } |
466 | 466 |
467 EXPECT_EQ(0, error_count); | 467 EXPECT_EQ(0, error_count); |
468 | 468 |
469 if (infile_a_.EndOfFile()) { | 469 if (infile_a_.EndOfFile()) { |
470 infile_a_.Rewind(); | 470 infile_a_.Rewind(); |
(...skipping 11 matching lines...) Loading... |
482 } | 482 } |
483 | 483 |
484 void TestAllCodecs::DisplaySendReceiveCodec() { | 484 void TestAllCodecs::DisplaySendReceiveCodec() { |
485 CodecInst my_codec_param; | 485 CodecInst my_codec_param; |
486 printf("%s -> ", acm_a_->SendCodec()->plname); | 486 printf("%s -> ", acm_a_->SendCodec()->plname); |
487 acm_b_->ReceiveCodec(&my_codec_param); | 487 acm_b_->ReceiveCodec(&my_codec_param); |
488 printf("%s\n", my_codec_param.plname); | 488 printf("%s\n", my_codec_param.plname); |
489 } | 489 } |
490 | 490 |
491 } // namespace webrtc | 491 } // namespace webrtc |
OLD | NEW |