OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 29 matching lines...) Expand all Loading... |
40 int channels, | 40 int channels, |
41 int payload_type, | 41 int payload_type, |
42 int frame_size_samples); | 42 int frame_size_samples); |
43 | 43 |
44 // Registers an external send codec. Returns true on success, false otherwise. | 44 // Registers an external send codec. Returns true on success, false otherwise. |
45 bool RegisterExternalCodec(AudioEncoder* external_speech_encoder); | 45 bool RegisterExternalCodec(AudioEncoder* external_speech_encoder); |
46 | 46 |
47 // Returns the next encoded packet. Returns NULL if the test duration was | 47 // Returns the next encoded packet. Returns NULL if the test duration was |
48 // exceeded. Ownership of the packet is handed over to the caller. | 48 // exceeded. Ownership of the packet is handed over to the caller. |
49 // Inherited from PacketSource. | 49 // Inherited from PacketSource. |
50 Packet* NextPacket() override; | 50 Packet* NextPacket(); |
51 | 51 |
52 // Inherited from AudioPacketizationCallback. | 52 // Inherited from AudioPacketizationCallback. |
53 int32_t SendData(FrameType frame_type, | 53 int32_t SendData(FrameType frame_type, |
54 uint8_t payload_type, | 54 uint8_t payload_type, |
55 uint32_t timestamp, | 55 uint32_t timestamp, |
56 const uint8_t* payload_data, | 56 const uint8_t* payload_data, |
57 size_t payload_len_bytes, | 57 size_t payload_len_bytes, |
58 const RTPFragmentationHeader* fragmentation) override; | 58 const RTPFragmentationHeader* fragmentation) override; |
59 | 59 |
60 AudioCodingModule* acm() { return acm_.get(); } | 60 AudioCodingModule* acm() { return acm_.get(); } |
(...skipping 21 matching lines...) Expand all Loading... |
82 uint16_t sequence_number_; | 82 uint16_t sequence_number_; |
83 std::vector<uint8_t> last_payload_vec_; | 83 std::vector<uint8_t> last_payload_vec_; |
84 bool data_to_send_; | 84 bool data_to_send_; |
85 | 85 |
86 RTC_DISALLOW_COPY_AND_ASSIGN(AcmSendTestOldApi); | 86 RTC_DISALLOW_COPY_AND_ASSIGN(AcmSendTestOldApi); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace test | 89 } // namespace test |
90 } // namespace webrtc | 90 } // namespace webrtc |
91 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_ACM_SEND_TEST_OLDAPI_H_ | 91 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_ACM_SEND_TEST_OLDAPI_H_ |
OLD | NEW |