OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #ifndef WEBRTC_CALL_H_ | 10 #ifndef WEBRTC_CALL_H_ |
(...skipping 74 matching lines...) Loading... |
85 // AudioState which is possibly shared between multiple calls. | 85 // AudioState which is possibly shared between multiple calls. |
86 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 86 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
87 rtc::scoped_refptr<AudioState> audio_state; | 87 rtc::scoped_refptr<AudioState> audio_state; |
88 | 88 |
89 // Audio Processing Module to be used in this call. | 89 // Audio Processing Module to be used in this call. |
90 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 90 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
91 AudioProcessing* audio_processing = nullptr; | 91 AudioProcessing* audio_processing = nullptr; |
92 }; | 92 }; |
93 | 93 |
94 struct Stats { | 94 struct Stats { |
| 95 std::string ToString(int64_t time_ms) const; |
| 96 |
95 int send_bandwidth_bps = 0; // Estimated available send bandwidth. | 97 int send_bandwidth_bps = 0; // Estimated available send bandwidth. |
96 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. | 98 int max_padding_bitrate_bps = 0; // Cumulative configured max padding. |
97 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. | 99 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. |
98 int64_t pacer_delay_ms = 0; | 100 int64_t pacer_delay_ms = 0; |
99 int64_t rtt_ms = -1; | 101 int64_t rtt_ms = -1; |
100 }; | 102 }; |
101 | 103 |
102 static Call* Create(const Call::Config& config); | 104 static Call* Create(const Call::Config& config); |
103 | 105 |
104 virtual AudioSendStream* CreateAudioSendStream( | 106 virtual AudioSendStream* CreateAudioSendStream( |
(...skipping 47 matching lines...) Loading... |
152 virtual bool StartEventLog(rtc::PlatformFile log_file, | 154 virtual bool StartEventLog(rtc::PlatformFile log_file, |
153 int64_t max_size_bytes) = 0; | 155 int64_t max_size_bytes) = 0; |
154 virtual void StopEventLog() = 0; | 156 virtual void StopEventLog() = 0; |
155 | 157 |
156 virtual ~Call() {} | 158 virtual ~Call() {} |
157 }; | 159 }; |
158 | 160 |
159 } // namespace webrtc | 161 } // namespace webrtc |
160 | 162 |
161 #endif // WEBRTC_CALL_H_ | 163 #endif // WEBRTC_CALL_H_ |
OLD | NEW |