OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // returned one is pre-fetched in the NetEqInput object, such that future | 58 // returned one is pre-fetched in the NetEqInput object, such that future |
59 // calls to NextPacketTime() or NextHeader() will return information from that | 59 // calls to NextPacketTime() or NextHeader() will return information from that |
60 // packet. | 60 // packet. |
61 virtual std::unique_ptr<PacketData> PopPacket() = 0; | 61 virtual std::unique_ptr<PacketData> PopPacket() = 0; |
62 | 62 |
63 // Move to the next output event. This will make NextOutputEventTime() return | 63 // Move to the next output event. This will make NextOutputEventTime() return |
64 // a new value (potentially the same if several output events share the same | 64 // a new value (potentially the same if several output events share the same |
65 // time). | 65 // time). |
66 virtual void AdvanceOutputEvent() = 0; | 66 virtual void AdvanceOutputEvent() = 0; |
67 | 67 |
68 // Returns true if the source has come to an end. | 68 // Returns true if the source has come to an end. An implementation must |
| 69 // eventually return true from this method, or the test will end up in an |
| 70 // infinite loop. |
69 virtual bool ended() const = 0; | 71 virtual bool ended() const = 0; |
70 | 72 |
71 // Returns the RTP header for the next packet, i.e., the packet that will be | 73 // Returns the RTP header for the next packet, i.e., the packet that will be |
72 // delivered next by PopPacket(). | 74 // delivered next by PopPacket(). |
73 virtual rtc::Optional<RTPHeader> NextHeader() const = 0; | 75 virtual rtc::Optional<RTPHeader> NextHeader() const = 0; |
74 }; | 76 }; |
75 | 77 |
76 } // namespace test | 78 } // namespace test |
77 } // namespace webrtc | 79 } // namespace webrtc |
78 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_INPUT_H_ | 80 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_INPUT_H_ |
OLD | NEW |