| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // ================================================================== | 297 // ================================================================== |
| 298 // Voice specific types | 298 // Voice specific types |
| 299 // ================================================================== | 299 // ================================================================== |
| 300 | 300 |
| 301 // Each codec supported can be described by this structure. | 301 // Each codec supported can be described by this structure. |
| 302 struct CodecInst { | 302 struct CodecInst { |
| 303 int pltype; | 303 int pltype; |
| 304 char plname[RTP_PAYLOAD_NAME_SIZE]; | 304 char plname[RTP_PAYLOAD_NAME_SIZE]; |
| 305 int plfreq; | 305 int plfreq; |
| 306 int pacsize; | 306 int pacsize; |
| 307 int channels; | 307 size_t channels; |
| 308 int rate; // bits/sec unlike {start,min,max}Bitrate elsewhere in this file! | 308 int rate; // bits/sec unlike {start,min,max}Bitrate elsewhere in this file! |
| 309 | 309 |
| 310 bool operator==(const CodecInst& other) const { | 310 bool operator==(const CodecInst& other) const { |
| 311 return pltype == other.pltype && | 311 return pltype == other.pltype && |
| 312 (STR_CASE_CMP(plname, other.plname) == 0) && | 312 (STR_CASE_CMP(plname, other.plname) == 0) && |
| 313 plfreq == other.plfreq && | 313 plfreq == other.plfreq && |
| 314 pacsize == other.pacsize && | 314 pacsize == other.pacsize && |
| 315 channels == other.channels && | 315 channels == other.channels && |
| 316 rate == other.rate; | 316 rate == other.rate; |
| 317 } | 317 } |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 class StreamDataCountersCallback { | 897 class StreamDataCountersCallback { |
| 898 public: | 898 public: |
| 899 virtual ~StreamDataCountersCallback() {} | 899 virtual ~StreamDataCountersCallback() {} |
| 900 | 900 |
| 901 virtual void DataCountersUpdated(const StreamDataCounters& counters, | 901 virtual void DataCountersUpdated(const StreamDataCounters& counters, |
| 902 uint32_t ssrc) = 0; | 902 uint32_t ssrc) = 0; |
| 903 }; | 903 }; |
| 904 } // namespace webrtc | 904 } // namespace webrtc |
| 905 | 905 |
| 906 #endif // WEBRTC_COMMON_TYPES_H_ | 906 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |