| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // TODO(asapersson): This class will remove the need for SendSideDelayObserver. | 292 // TODO(asapersson): This class will remove the need for SendSideDelayObserver. |
| 293 // Remove SendSideDelayObserver once possible. | 293 // Remove SendSideDelayObserver once possible. |
| 294 class SendPacketObserver { | 294 class SendPacketObserver { |
| 295 public: | 295 public: |
| 296 virtual ~SendPacketObserver() {} | 296 virtual ~SendPacketObserver() {} |
| 297 virtual void OnSendPacket(uint16_t packet_id, | 297 virtual void OnSendPacket(uint16_t packet_id, |
| 298 int64_t capture_time_ms, | 298 int64_t capture_time_ms, |
| 299 uint32_t ssrc) = 0; | 299 uint32_t ssrc) = 0; |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 // Callback, used to notify an observer when the overhead per packet |
| 303 // has changed. |
| 304 class OverheadObserver { |
| 305 public: |
| 306 virtual ~OverheadObserver() = default; |
| 307 virtual void OnOverheadChanged(size_t overhead_bytes_per_packet) = 0; |
| 308 }; |
| 309 |
| 302 // ================================================================== | 310 // ================================================================== |
| 303 // Voice specific types | 311 // Voice specific types |
| 304 // ================================================================== | 312 // ================================================================== |
| 305 | 313 |
| 306 // Each codec supported can be described by this structure. | 314 // Each codec supported can be described by this structure. |
| 307 struct CodecInst { | 315 struct CodecInst { |
| 308 int pltype; | 316 int pltype; |
| 309 char plname[RTP_PAYLOAD_NAME_SIZE]; | 317 char plname[RTP_PAYLOAD_NAME_SIZE]; |
| 310 int plfreq; | 318 int plfreq; |
| 311 int pacsize; | 319 int pacsize; |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 879 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
| 872 | 880 |
| 873 enum NetworkState { | 881 enum NetworkState { |
| 874 kNetworkUp, | 882 kNetworkUp, |
| 875 kNetworkDown, | 883 kNetworkDown, |
| 876 }; | 884 }; |
| 877 | 885 |
| 878 } // namespace webrtc | 886 } // namespace webrtc |
| 879 | 887 |
| 880 #endif // WEBRTC_COMMON_TYPES_H_ | 888 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |