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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // These three are only used by code #ifdeffed on WEBRTC_CODEC_G722. | 42 // These three are only used by code #ifdeffed on WEBRTC_CODEC_G722. |
43 #ifdef WEBRTC_CODEC_G722 | 43 #ifdef WEBRTC_CODEC_G722 |
44 const char kNameISAC[] = "ISAC"; | 44 const char kNameISAC[] = "ISAC"; |
45 const char kNameG722[] = "G722"; | 45 const char kNameG722[] = "G722"; |
46 const char kNameOPUS[] = "opus"; | 46 const char kNameOPUS[] = "opus"; |
47 #endif | 47 #endif |
48 } | 48 } |
49 | 49 |
50 TestRedFec::TestRedFec() | 50 TestRedFec::TestRedFec() |
51 : _acmA(AudioCodingModule::Create(0)), | 51 : _acmA(AudioCodingModule::Create()), |
52 _acmB(AudioCodingModule::Create(1)), | 52 _acmB(AudioCodingModule::Create()), |
53 _channelA2B(NULL), | 53 _channelA2B(NULL), |
54 _testCntr(0) { | 54 _testCntr(0) { |
55 } | 55 } |
56 | 56 |
57 TestRedFec::~TestRedFec() { | 57 TestRedFec::~TestRedFec() { |
58 if (_channelA2B != NULL) { | 58 if (_channelA2B != NULL) { |
59 delete _channelA2B; | 59 delete _channelA2B; |
60 _channelA2B = NULL; | 60 _channelA2B = NULL; |
61 } | 61 } |
62 } | 62 } |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 std::string file_name; | 473 std::string file_name; |
474 std::stringstream file_stream; | 474 std::stringstream file_stream; |
475 file_stream << webrtc::test::OutputPath(); | 475 file_stream << webrtc::test::OutputPath(); |
476 file_stream << "TestRedFec_outFile_"; | 476 file_stream << "TestRedFec_outFile_"; |
477 file_stream << test_number << ".pcm"; | 477 file_stream << test_number << ".pcm"; |
478 file_name = file_stream.str(); | 478 file_name = file_stream.str(); |
479 _outFileB.Open(file_name, 16000, "wb"); | 479 _outFileB.Open(file_name, 16000, "wb"); |
480 } | 480 } |
481 | 481 |
482 } // namespace webrtc | 482 } // namespace webrtc |
OLD | NEW |