| 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 |
| 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| 13 | 13 |
| 14 #include "webrtc/api/audio/audio_mixer.h" | 14 #include "webrtc/api/audio/audio_mixer.h" |
| 15 #include "webrtc/base/constructormagic.h" | 15 #include "webrtc/base/constructormagic.h" |
| 16 #include "webrtc/base/race_checker.h" | 16 #include "webrtc/base/race_checker.h" |
| 17 #include "webrtc/base/thread_checker.h" | 17 #include "webrtc/base/thread_checker.h" |
| 18 #include "webrtc/voice_engine/channel_manager.h" | 18 #include "webrtc/voice_engine/channel_manager.h" |
| 19 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 19 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
| 20 | 20 |
| 21 #include <memory> | 21 #include <memory> |
| 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 RtpPacketSender; | 31 class RtpPacketSender; |
| 31 class Transport; | 32 class Transport; |
| 32 class TransportFeedbackObserver; | 33 class TransportFeedbackObserver; |
| 33 | 34 |
| 34 namespace voe { | 35 namespace voe { |
| 35 | 36 |
| 36 class Channel; | 37 class Channel; |
| 37 | 38 |
| 38 // This class provides the "view" of a voe::Channel that we need to implement | 39 // This class provides the "view" of a voe::Channel that we need to implement |
| 39 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 40 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, | 91 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, |
| 91 int max_frame_length_ms); | 92 int max_frame_length_ms); |
| 92 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( | 93 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( |
| 93 int sample_rate_hz, | 94 int sample_rate_hz, |
| 94 AudioFrame* audio_frame); | 95 AudioFrame* audio_frame); |
| 95 virtual int NeededFrequency() const; | 96 virtual int NeededFrequency() const; |
| 96 virtual void SetTransportOverhead(int transport_overhead_per_packet); | 97 virtual void SetTransportOverhead(int transport_overhead_per_packet); |
| 97 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); | 98 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); |
| 98 virtual void DisassociateSendChannel(); | 99 virtual void DisassociateSendChannel(); |
| 99 | 100 |
| 101 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
| 102 |
| 100 private: | 103 private: |
| 101 Channel* channel() const; | 104 Channel* channel() const; |
| 102 | 105 |
| 103 rtc::ThreadChecker thread_checker_; | 106 rtc::ThreadChecker thread_checker_; |
| 104 rtc::RaceChecker race_checker_; | 107 rtc::RaceChecker race_checker_; |
| 105 ChannelOwner channel_owner_; | 108 ChannelOwner channel_owner_; |
| 106 | 109 |
| 107 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 110 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
| 108 }; | 111 }; |
| 109 } // namespace voe | 112 } // namespace voe |
| 110 } // namespace webrtc | 113 } // namespace webrtc |
| 111 | 114 |
| 112 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 115 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| OLD | NEW |