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/sequenced_task_checker.h" |
17 #include "webrtc/base/thread_checker.h" | 18 #include "webrtc/base/thread_checker.h" |
18 #include "webrtc/voice_engine/channel_manager.h" | 19 #include "webrtc/voice_engine/channel_manager.h" |
19 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 20 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
20 | 21 |
21 #include <memory> | 22 #include <memory> |
22 #include <string> | 23 #include <string> |
23 #include <vector> | 24 #include <vector> |
24 | 25 |
25 namespace webrtc { | 26 namespace webrtc { |
26 | 27 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual void DisableAudioNetworkAdaptor(); | 91 virtual void DisableAudioNetworkAdaptor(); |
91 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, | 92 virtual void SetReceiverFrameLengthRange(int min_frame_length_ms, |
92 int max_frame_length_ms); | 93 int max_frame_length_ms); |
93 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( | 94 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( |
94 int sample_rate_hz, | 95 int sample_rate_hz, |
95 AudioFrame* audio_frame); | 96 AudioFrame* audio_frame); |
96 virtual int NeededFrequency() const; | 97 virtual int NeededFrequency() const; |
97 virtual void SetTransportOverhead(int transport_overhead_per_packet); | 98 virtual void SetTransportOverhead(int transport_overhead_per_packet); |
98 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); | 99 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); |
99 virtual void DisassociateSendChannel(); | 100 virtual void DisassociateSendChannel(); |
| 101 virtual void AdaptCodec(); |
100 | 102 |
101 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | 103 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
102 | 104 |
103 private: | 105 private: |
104 Channel* channel() const; | 106 Channel* channel() const; |
105 | 107 |
106 rtc::ThreadChecker thread_checker_; | 108 rtc::ThreadChecker thread_checker_; |
107 rtc::RaceChecker race_checker_; | 109 rtc::RaceChecker race_checker_; |
| 110 rtc::SequencedTaskChecker worker_queue_checker_; |
108 ChannelOwner channel_owner_; | 111 ChannelOwner channel_owner_; |
109 | 112 |
110 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 113 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
111 }; | 114 }; |
112 } // namespace voe | 115 } // namespace voe |
113 } // namespace webrtc | 116 } // namespace webrtc |
114 | 117 |
115 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 118 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
OLD | NEW |