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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 const int frequency, | 245 const int frequency, |
246 const uint8_t channels, | 246 const uint8_t channels, |
247 const uint32_t rate) = 0; | 247 const uint32_t rate) = 0; |
248 | 248 |
249 virtual void OnIncomingSSRCChanged( const int32_t id, | 249 virtual void OnIncomingSSRCChanged( const int32_t id, |
250 const uint32_t ssrc) = 0; | 250 const uint32_t ssrc) = 0; |
251 | 251 |
252 virtual void OnIncomingCSRCChanged( const int32_t id, | 252 virtual void OnIncomingCSRCChanged( const int32_t id, |
253 const uint32_t CSRC, | 253 const uint32_t CSRC, |
254 const bool added) = 0; | 254 const bool added) = 0; |
255 | |
256 virtual void ResetStatistics(uint32_t ssrc) = 0; | |
257 }; | 255 }; |
258 | 256 |
259 class RtpAudioFeedback { | 257 class RtpAudioFeedback { |
260 public: | 258 public: |
261 | 259 |
262 virtual void OnPlayTelephoneEvent(const int32_t id, | 260 virtual void OnPlayTelephoneEvent(const int32_t id, |
263 const uint8_t event, | 261 const uint8_t event, |
264 const uint16_t lengthMs, | 262 const uint16_t lengthMs, |
265 const uint8_t volume) = 0; | 263 const uint8_t volume) = 0; |
266 protected: | 264 protected: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 const uint8_t channels, | 314 const uint8_t channels, |
317 const uint32_t rate) override { | 315 const uint32_t rate) override { |
318 return 0; | 316 return 0; |
319 } | 317 } |
320 | 318 |
321 void OnIncomingSSRCChanged(const int32_t id, const uint32_t ssrc) override {} | 319 void OnIncomingSSRCChanged(const int32_t id, const uint32_t ssrc) override {} |
322 | 320 |
323 void OnIncomingCSRCChanged(const int32_t id, | 321 void OnIncomingCSRCChanged(const int32_t id, |
324 const uint32_t CSRC, | 322 const uint32_t CSRC, |
325 const bool added) override {} | 323 const bool added) override {} |
326 | |
327 void ResetStatistics(uint32_t ssrc) override {} | |
328 }; | 324 }; |
329 | 325 |
330 // Null object version of RtpData. | 326 // Null object version of RtpData. |
331 class NullRtpData : public RtpData { | 327 class NullRtpData : public RtpData { |
332 public: | 328 public: |
333 virtual ~NullRtpData() {} | 329 virtual ~NullRtpData() {} |
334 | 330 |
335 int32_t OnReceivedPayloadData(const uint8_t* payloadData, | 331 int32_t OnReceivedPayloadData(const uint8_t* payloadData, |
336 const size_t payloadSize, | 332 const size_t payloadSize, |
337 const WebRtcRTPHeader* rtpHeader) override { | 333 const WebRtcRTPHeader* rtpHeader) override { |
(...skipping 11 matching lines...) Expand all Loading... |
349 virtual ~NullRtpAudioFeedback() {} | 345 virtual ~NullRtpAudioFeedback() {} |
350 | 346 |
351 void OnPlayTelephoneEvent(const int32_t id, | 347 void OnPlayTelephoneEvent(const int32_t id, |
352 const uint8_t event, | 348 const uint8_t event, |
353 const uint16_t lengthMs, | 349 const uint16_t lengthMs, |
354 const uint8_t volume) override {} | 350 const uint8_t volume) override {} |
355 }; | 351 }; |
356 | 352 |
357 } // namespace webrtc | 353 } // namespace webrtc |
358 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ | 354 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |