OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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_CALL_AUDIO_SEND_STREAM_H_ | 11 #ifndef WEBRTC_CALL_AUDIO_SEND_STREAM_H_ |
12 #define WEBRTC_CALL_AUDIO_SEND_STREAM_H_ | 12 #define WEBRTC_CALL_AUDIO_SEND_STREAM_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/api/audio_codecs/audio_encoder.h" |
18 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" | 19 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" |
19 #include "webrtc/api/audio_codecs/audio_format.h" | 20 #include "webrtc/api/audio_codecs/audio_format.h" |
20 #include "webrtc/api/call/transport.h" | 21 #include "webrtc/api/call/transport.h" |
21 #include "webrtc/api/optional.h" | 22 #include "webrtc/api/optional.h" |
22 #include "webrtc/api/rtpparameters.h" | 23 #include "webrtc/api/rtpparameters.h" |
23 #include "webrtc/call/rtp_config.h" | 24 #include "webrtc/call/rtp_config.h" |
24 #include "webrtc/rtc_base/scoped_ref_ptr.h" | 25 #include "webrtc/rtc_base/scoped_ref_ptr.h" |
25 #include "webrtc/typedefs.h" | 26 #include "webrtc/typedefs.h" |
26 | 27 |
27 namespace webrtc { | 28 namespace webrtc { |
(...skipping 26 matching lines...) Expand all Loading... |
54 double total_input_energy = 0.0; | 55 double total_input_energy = 0.0; |
55 double total_input_duration = 0.0; | 56 double total_input_duration = 0.0; |
56 float aec_quality_min = -1.0f; | 57 float aec_quality_min = -1.0f; |
57 int32_t echo_delay_median_ms = -1; | 58 int32_t echo_delay_median_ms = -1; |
58 int32_t echo_delay_std_ms = -1; | 59 int32_t echo_delay_std_ms = -1; |
59 int32_t echo_return_loss = -100; | 60 int32_t echo_return_loss = -100; |
60 int32_t echo_return_loss_enhancement = -100; | 61 int32_t echo_return_loss_enhancement = -100; |
61 float residual_echo_likelihood = -1.0f; | 62 float residual_echo_likelihood = -1.0f; |
62 float residual_echo_likelihood_recent_max = -1.0f; | 63 float residual_echo_likelihood_recent_max = -1.0f; |
63 bool typing_noise_detected = false; | 64 bool typing_noise_detected = false; |
| 65 ANAStats ana_statistics; |
64 }; | 66 }; |
65 | 67 |
66 struct Config { | 68 struct Config { |
67 Config() = delete; | 69 Config() = delete; |
68 explicit Config(Transport* send_transport); | 70 explicit Config(Transport* send_transport); |
69 ~Config(); | 71 ~Config(); |
70 std::string ToString() const; | 72 std::string ToString() const; |
71 | 73 |
72 // Send-stream specific RTP settings. | 74 // Send-stream specific RTP settings. |
73 struct Rtp { | 75 struct Rtp { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 virtual bool SendTelephoneEvent(int payload_type, int payload_frequency, | 151 virtual bool SendTelephoneEvent(int payload_type, int payload_frequency, |
150 int event, int duration_ms) = 0; | 152 int event, int duration_ms) = 0; |
151 | 153 |
152 virtual void SetMuted(bool muted) = 0; | 154 virtual void SetMuted(bool muted) = 0; |
153 | 155 |
154 virtual Stats GetStats() const = 0; | 156 virtual Stats GetStats() const = 0; |
155 }; | 157 }; |
156 } // namespace webrtc | 158 } // namespace webrtc |
157 | 159 |
158 #endif // WEBRTC_CALL_AUDIO_SEND_STREAM_H_ | 160 #endif // WEBRTC_CALL_AUDIO_SEND_STREAM_H_ |
OLD | NEW |