| 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 int16_t seqNo, uint32_t timeStamp, uint32_t ssrc); | 41 int16_t seqNo, uint32_t timeStamp, uint32_t ssrc); |
| 42 RTPStream* _rtpStream; | 42 RTPStream* _rtpStream; |
| 43 int32_t _frequency; | 43 int32_t _frequency; |
| 44 int16_t _seqNo; | 44 int16_t _seqNo; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class Sender { | 47 class Sender { |
| 48 public: | 48 public: |
| 49 Sender(); | 49 Sender(); |
| 50 void Setup(AudioCodingModule *acm, RTPStream *rtpStream, | 50 void Setup(AudioCodingModule *acm, RTPStream *rtpStream, |
| 51 std::string in_file_name, int sample_rate, int channels); | 51 std::string in_file_name, int sample_rate, size_t channels); |
| 52 void Teardown(); | 52 void Teardown(); |
| 53 void Run(); | 53 void Run(); |
| 54 bool Add10MsData(); | 54 bool Add10MsData(); |
| 55 | 55 |
| 56 //for auto_test and logging | 56 //for auto_test and logging |
| 57 uint8_t testMode; | 57 uint8_t testMode; |
| 58 uint8_t codeId; | 58 uint8_t codeId; |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 AudioCodingModule* _acm; | 61 AudioCodingModule* _acm; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 PCMFile _pcmFile; | 64 PCMFile _pcmFile; |
| 65 AudioFrame _audioFrame; | 65 AudioFrame _audioFrame; |
| 66 TestPacketization* _packetization; | 66 TestPacketization* _packetization; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 class Receiver { | 69 class Receiver { |
| 70 public: | 70 public: |
| 71 Receiver(); | 71 Receiver(); |
| 72 virtual ~Receiver() {}; | 72 virtual ~Receiver() {}; |
| 73 void Setup(AudioCodingModule *acm, RTPStream *rtpStream, | 73 void Setup(AudioCodingModule *acm, RTPStream *rtpStream, |
| 74 std::string out_file_name, int channels); | 74 std::string out_file_name, size_t channels); |
| 75 void Teardown(); | 75 void Teardown(); |
| 76 void Run(); | 76 void Run(); |
| 77 virtual bool IncomingPacket(); | 77 virtual bool IncomingPacket(); |
| 78 bool PlayoutData(); | 78 bool PlayoutData(); |
| 79 | 79 |
| 80 //for auto_test and logging | 80 //for auto_test and logging |
| 81 uint8_t codeId; | 81 uint8_t codeId; |
| 82 uint8_t testMode; | 82 uint8_t testMode; |
| 83 | 83 |
| 84 private: | 84 private: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 114 int testMode); | 114 int testMode); |
| 115 | 115 |
| 116 protected: | 116 protected: |
| 117 Sender _sender; | 117 Sender _sender; |
| 118 Receiver _receiver; | 118 Receiver _receiver; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace webrtc | 121 } // namespace webrtc |
| 122 | 122 |
| 123 #endif // WEBRTC_MODULES_AUDIO_CODING_TEST_ENCODEDECODETEST_H_ | 123 #endif // WEBRTC_MODULES_AUDIO_CODING_TEST_ENCODEDECODETEST_H_ |
| OLD | NEW |