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 |
11 #include "webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h" | 11 #include "webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <limits> | 14 #include <limits> |
15 | 15 |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/modules/audio_coding/neteq/tools/rtc_event_log_source.h" | 16 #include "webrtc/modules/audio_coding/neteq/tools/rtc_event_log_source.h" |
18 #include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h" | 17 #include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h" |
| 18 #include "webrtc/rtc_base/checks.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 NetEqPacketSourceInput::NetEqPacketSourceInput() : next_output_event_ms_(0) {} | 23 NetEqPacketSourceInput::NetEqPacketSourceInput() : next_output_event_ms_(0) {} |
24 | 24 |
25 rtc::Optional<int64_t> NetEqPacketSourceInput::NextPacketTime() const { | 25 rtc::Optional<int64_t> NetEqPacketSourceInput::NextPacketTime() const { |
26 return packet_ | 26 return packet_ |
27 ? rtc::Optional<int64_t>(static_cast<int64_t>(packet_->time_ms())) | 27 ? rtc::Optional<int64_t>(static_cast<int64_t>(packet_->time_ms())) |
28 : rtc::Optional<int64_t>(); | 28 : rtc::Optional<int64_t>(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 next_output_event_ms_ = rtc::Optional<int64_t>(); | 107 next_output_event_ms_ = rtc::Optional<int64_t>(); |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 PacketSource* NetEqEventLogInput::source() { | 111 PacketSource* NetEqEventLogInput::source() { |
112 return source_.get(); | 112 return source_.get(); |
113 } | 113 } |
114 | 114 |
115 } // namespace test | 115 } // namespace test |
116 } // namespace webrtc | 116 } // namespace webrtc |
OLD | NEW |