| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // TODO(asapersson): This class will remove the need for SendSideDelayObserver. | 291 // TODO(asapersson): This class will remove the need for SendSideDelayObserver. |
| 292 // Remove SendSideDelayObserver once possible. | 292 // Remove SendSideDelayObserver once possible. |
| 293 class SendPacketObserver { | 293 class SendPacketObserver { |
| 294 public: | 294 public: |
| 295 virtual ~SendPacketObserver() {} | 295 virtual ~SendPacketObserver() {} |
| 296 virtual void OnSendPacket(uint16_t packet_id, | 296 virtual void OnSendPacket(uint16_t packet_id, |
| 297 int64_t capture_time_ms, | 297 int64_t capture_time_ms, |
| 298 uint32_t ssrc) = 0; | 298 uint32_t ssrc) = 0; |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 // Callback, used to notify an observer when the overhead per packet |
| 302 // has changed. |
| 303 class OverheadSizeObserver { |
| 304 public: |
| 305 virtual ~OverheadSizeObserver() = default; |
| 306 virtual void OnOverheadSizeChanged(int overhead_bytes_per_packet) = 0; |
| 307 }; |
| 308 |
| 301 // ================================================================== | 309 // ================================================================== |
| 302 // Voice specific types | 310 // Voice specific types |
| 303 // ================================================================== | 311 // ================================================================== |
| 304 | 312 |
| 305 // Each codec supported can be described by this structure. | 313 // Each codec supported can be described by this structure. |
| 306 struct CodecInst { | 314 struct CodecInst { |
| 307 int pltype; | 315 int pltype; |
| 308 char plname[RTP_PAYLOAD_NAME_SIZE]; | 316 char plname[RTP_PAYLOAD_NAME_SIZE]; |
| 309 int plfreq; | 317 int plfreq; |
| 310 int pacsize; | 318 int pacsize; |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 845 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
| 838 | 846 |
| 839 enum NetworkState { | 847 enum NetworkState { |
| 840 kNetworkUp, | 848 kNetworkUp, |
| 841 kNetworkDown, | 849 kNetworkDown, |
| 842 }; | 850 }; |
| 843 | 851 |
| 844 } // namespace webrtc | 852 } // namespace webrtc |
| 845 | 853 |
| 846 #endif // WEBRTC_COMMON_TYPES_H_ | 854 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |