OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 11 matching lines...) Expand all Loading... |
22 #include <string> | 22 #include <string> |
23 #include <vector> | 23 #include <vector> |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 class AudioSinkInterface; | 27 class AudioSinkInterface; |
28 class PacketRouter; | 28 class PacketRouter; |
29 class RtcEventLog; | 29 class RtcEventLog; |
30 class RtcpRttStats; | 30 class RtcpRttStats; |
31 class RtpPacketSender; | 31 class RtpPacketSender; |
| 32 class RtpReceiver; |
| 33 class RtpRtcp; |
32 class Transport; | 34 class Transport; |
33 class TransportFeedbackObserver; | 35 class TransportFeedbackObserver; |
34 | 36 |
35 namespace voe { | 37 namespace voe { |
36 | 38 |
37 class Channel; | 39 class Channel; |
38 | 40 |
39 // This class provides the "view" of a voe::Channel that we need to implement | 41 // This class provides the "view" of a voe::Channel that we need to implement |
40 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 42 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
41 // purposes: | 43 // purposes: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void DisableAudioNetworkAdaptor(); | 94 virtual void DisableAudioNetworkAdaptor(); |
93 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, | 95 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, |
94 int max_frame_length_ms); | 96 int max_frame_length_ms); |
95 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( | 97 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( |
96 int sample_rate_hz, | 98 int sample_rate_hz, |
97 AudioFrame* audio_frame); | 99 AudioFrame* audio_frame); |
98 virtual int NeededFrequency() const; | 100 virtual int NeededFrequency() const; |
99 virtual void SetTransportOverhead(int transport_overhead_per_packet); | 101 virtual void SetTransportOverhead(int transport_overhead_per_packet); |
100 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); | 102 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); |
101 virtual void DisassociateSendChannel(); | 103 virtual void DisassociateSendChannel(); |
| 104 virtual void GetRtpRtcp(RtpRtcp** rtp_rtcp, |
| 105 RtpReceiver** rtp_receiver) const; |
| 106 virtual void GetDelayEstimate(int* jitter_buffer_delay_ms, |
| 107 int* playout_buffer_delay_ms) const; |
| 108 virtual uint32_t GetPlayoutTimestamp() const; |
| 109 virtual void SetMinimumPlayoutDelay(int delay_ms); |
102 | 110 |
103 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | 111 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
104 | 112 |
105 private: | 113 private: |
106 Channel* channel() const; | 114 Channel* channel() const; |
107 | 115 |
108 rtc::ThreadChecker thread_checker_; | 116 rtc::ThreadChecker thread_checker_; |
109 rtc::RaceChecker race_checker_; | 117 rtc::RaceChecker race_checker_; |
110 ChannelOwner channel_owner_; | 118 ChannelOwner channel_owner_; |
111 | 119 |
112 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 120 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
113 }; | 121 }; |
114 } // namespace voe | 122 } // namespace voe |
115 } // namespace webrtc | 123 } // namespace webrtc |
116 | 124 |
117 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 125 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
OLD | NEW |