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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void SetReceiveAudioLevelIndicationStatus(bool enable, int id); | 58 virtual void SetReceiveAudioLevelIndicationStatus(bool enable, int id); |
59 virtual void EnableSendTransportSequenceNumber(int id); | 59 virtual void EnableSendTransportSequenceNumber(int id); |
60 virtual void EnableReceiveTransportSequenceNumber(int id); | 60 virtual void EnableReceiveTransportSequenceNumber(int id); |
61 virtual void RegisterSenderCongestionControlObjects( | 61 virtual void RegisterSenderCongestionControlObjects( |
62 RtpPacketSender* rtp_packet_sender, | 62 RtpPacketSender* rtp_packet_sender, |
63 TransportFeedbackObserver* transport_feedback_observer, | 63 TransportFeedbackObserver* transport_feedback_observer, |
64 PacketRouter* packet_router); | 64 PacketRouter* packet_router); |
65 virtual void RegisterReceiverCongestionControlObjects( | 65 virtual void RegisterReceiverCongestionControlObjects( |
66 PacketRouter* packet_router); | 66 PacketRouter* packet_router); |
67 virtual void ResetCongestionControlObjects(); | 67 virtual void ResetCongestionControlObjects(); |
68 | |
69 virtual CallStatistics GetRTCPStatistics() const; | 68 virtual CallStatistics GetRTCPStatistics() const; |
70 virtual std::vector<ReportBlock> GetRemoteRTCPReportBlocks() const; | 69 virtual std::vector<ReportBlock> GetRemoteRTCPReportBlocks() const; |
71 virtual NetworkStatistics GetNetworkStatistics() const; | 70 virtual NetworkStatistics GetNetworkStatistics() const; |
72 virtual AudioDecodingCallStats GetDecodingCallStatistics() const; | 71 virtual AudioDecodingCallStats GetDecodingCallStatistics() const; |
73 virtual int32_t GetSpeechOutputLevelFullRange() const; | 72 virtual int32_t GetSpeechOutputLevelFullRange() const; |
74 virtual uint32_t GetDelayEstimate() const; | 73 virtual uint32_t GetDelayEstimate() const; |
75 | |
76 virtual bool SetSendTelephoneEventPayloadType(int payload_type); | 74 virtual bool SetSendTelephoneEventPayloadType(int payload_type); |
77 virtual bool SendTelephoneEventOutband(int event, int duration_ms); | 75 virtual bool SendTelephoneEventOutband(int event, int duration_ms); |
78 virtual void SetBitrate(int bitrate_bps); | 76 virtual void SetBitrate(int bitrate_bps); |
79 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink); | 77 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink); |
80 virtual void SetInputMute(bool muted); | 78 virtual void SetInputMute(bool muted); |
81 | |
82 virtual void RegisterExternalTransport(Transport* transport); | 79 virtual void RegisterExternalTransport(Transport* transport); |
83 virtual void DeRegisterExternalTransport(); | 80 virtual void DeRegisterExternalTransport(); |
84 virtual bool ReceivedRTPPacket(const uint8_t* packet, | 81 virtual bool ReceivedRTPPacket(const uint8_t* packet, |
85 size_t length, | 82 size_t length, |
86 const PacketTime& packet_time); | 83 const PacketTime& packet_time); |
87 virtual bool ReceivedRTCPPacket(const uint8_t* packet, size_t length); | 84 virtual bool ReceivedRTCPPacket(const uint8_t* packet, size_t length); |
88 | |
89 virtual const rtc::scoped_refptr<AudioDecoderFactory>& | 85 virtual const rtc::scoped_refptr<AudioDecoderFactory>& |
90 GetAudioDecoderFactory() const; | 86 GetAudioDecoderFactory() const; |
91 | |
92 virtual void SetChannelOutputVolumeScaling(float scaling); | 87 virtual void SetChannelOutputVolumeScaling(float scaling); |
93 | |
94 virtual void SetRtcEventLog(RtcEventLog* event_log); | 88 virtual void SetRtcEventLog(RtcEventLog* event_log); |
95 | 89 virtual void EnableAudioNetworkAdaptor(const std::string& config_string); |
| 90 virtual void DisableAudioNetworkAdaptor(); |
| 91 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, |
| 92 int max_frame_length_ms); |
96 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( | 93 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( |
97 int sample_rate_hz, | 94 int sample_rate_hz, |
98 AudioFrame* audio_frame); | 95 AudioFrame* audio_frame); |
99 | 96 |
100 private: | 97 private: |
101 Channel* channel() const; | 98 Channel* channel() const; |
102 | 99 |
103 rtc::ThreadChecker thread_checker_; | 100 rtc::ThreadChecker thread_checker_; |
104 rtc::RaceChecker race_checker_; | 101 rtc::RaceChecker race_checker_; |
105 ChannelOwner channel_owner_; | 102 ChannelOwner channel_owner_; |
106 | 103 |
107 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 104 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
108 }; | 105 }; |
109 } // namespace voe | 106 } // namespace voe |
110 } // namespace webrtc | 107 } // namespace webrtc |
111 | 108 |
112 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 109 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
OLD | NEW |