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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // AudioState which is possibly shared between multiple calls. | 84 // AudioState which is possibly shared between multiple calls. |
85 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 85 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
86 rtc::scoped_refptr<AudioState> audio_state; | 86 rtc::scoped_refptr<AudioState> audio_state; |
87 | 87 |
88 // Audio Processing Module to be used in this call. | 88 // Audio Processing Module to be used in this call. |
89 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. | 89 // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
90 AudioProcessing* audio_processing = nullptr; | 90 AudioProcessing* audio_processing = nullptr; |
91 }; | 91 }; |
92 | 92 |
93 struct Stats { | 93 struct Stats { |
94 int send_bandwidth_bps = 0; | 94 int send_bandwidth_bps = 0; // Estimated available send bandwidth. |
95 int recv_bandwidth_bps = 0; | 95 int min_transmit_bitrate_bps = 0; // Bitrate to send, padding as needed. |
| 96 int recv_bandwidth_bps = 0; // Estimated available receive bandwidth. |
96 int64_t pacer_delay_ms = 0; | 97 int64_t pacer_delay_ms = 0; |
97 int64_t rtt_ms = -1; | 98 int64_t rtt_ms = -1; |
98 }; | 99 }; |
99 | 100 |
100 static Call* Create(const Call::Config& config); | 101 static Call* Create(const Call::Config& config); |
101 | 102 |
102 virtual AudioSendStream* CreateAudioSendStream( | 103 virtual AudioSendStream* CreateAudioSendStream( |
103 const AudioSendStream::Config& config) = 0; | 104 const AudioSendStream::Config& config) = 0; |
104 virtual void DestroyAudioSendStream(AudioSendStream* send_stream) = 0; | 105 virtual void DestroyAudioSendStream(AudioSendStream* send_stream) = 0; |
105 | 106 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const rtc::NetworkRoute& network_route) = 0; | 147 const rtc::NetworkRoute& network_route) = 0; |
147 | 148 |
148 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 149 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
149 | 150 |
150 virtual ~Call() {} | 151 virtual ~Call() {} |
151 }; | 152 }; |
152 | 153 |
153 } // namespace webrtc | 154 } // namespace webrtc |
154 | 155 |
155 #endif // WEBRTC_CALL_H_ | 156 #endif // WEBRTC_CALL_H_ |
OLD | NEW |