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 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_ENCODE_NETEQ_INPUT_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_ENCODE_NETEQ_INPUT_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_ENCODE_NETEQ_INPUT_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_ENCODE_NETEQ_INPUT_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h" | 16 #include "webrtc/api/audio_codecs/audio_encoder.h" |
17 #include "webrtc/modules/audio_coding/neteq/tools/neteq_input.h" | 17 #include "webrtc/modules/audio_coding/neteq/tools/neteq_input.h" |
18 #include "webrtc/modules/include/module_common_types.h" | 18 #include "webrtc/modules/include/module_common_types.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 // This class provides a NetEqInput that takes audio from a generator object and | 23 // This class provides a NetEqInput that takes audio from a generator object and |
24 // encodes it using a given audio encoder. | 24 // encodes it using a given audio encoder. |
25 class EncodeNetEqInput : public NetEqInput { | 25 class EncodeNetEqInput : public NetEqInput { |
26 public: | 26 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 uint32_t rtp_timestamp_ = 0; | 62 uint32_t rtp_timestamp_ = 0; |
63 int16_t sequence_number_ = 0; | 63 int16_t sequence_number_ = 0; |
64 int64_t next_packet_time_ms_ = 0; | 64 int64_t next_packet_time_ms_ = 0; |
65 int64_t next_output_event_ms_ = 0; | 65 int64_t next_output_event_ms_ = 0; |
66 const int64_t input_duration_ms_; | 66 const int64_t input_duration_ms_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace test | 69 } // namespace test |
70 } // namespace webrtc | 70 } // namespace webrtc |
71 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_ENCODE_NETEQ_INPUT_H_ | 71 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_ENCODE_NETEQ_INPUT_H_ |
OLD | NEW |