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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 int32_t SetSendCodec(const CodecInst& codec); | 200 int32_t SetSendCodec(const CodecInst& codec); |
201 void SetBitRate(int bitrate_bps); | 201 void SetBitRate(int bitrate_bps); |
202 int32_t SetVADStatus(bool enableVAD, ACMVADMode mode, bool disableDTX); | 202 int32_t SetVADStatus(bool enableVAD, ACMVADMode mode, bool disableDTX); |
203 int32_t GetVADStatus(bool& enabledVAD, ACMVADMode& mode, bool& disabledDTX); | 203 int32_t GetVADStatus(bool& enabledVAD, ACMVADMode& mode, bool& disabledDTX); |
204 int32_t SetRecPayloadType(const CodecInst& codec); | 204 int32_t SetRecPayloadType(const CodecInst& codec); |
205 int32_t GetRecPayloadType(CodecInst& codec); | 205 int32_t GetRecPayloadType(CodecInst& codec); |
206 int32_t SetSendCNPayloadType(int type, PayloadFrequencies frequency); | 206 int32_t SetSendCNPayloadType(int type, PayloadFrequencies frequency); |
207 int SetOpusMaxPlaybackRate(int frequency_hz); | 207 int SetOpusMaxPlaybackRate(int frequency_hz); |
208 int SetOpusDtx(bool enable_dtx); | 208 int SetOpusDtx(bool enable_dtx); |
209 int GetOpusDtx(bool* enabled); | 209 int GetOpusDtx(bool* enabled); |
210 bool EnableAudioNetworkAdaptor(const std::string& config_string); | 210 bool EnableAudioNetworkAdaptor(const std::string& config_string, |
| 211 int min_receiver_frame_length_ms, |
| 212 int max_receiver_frame_length_ms); |
211 void DisableAudioNetworkAdaptor(); | 213 void DisableAudioNetworkAdaptor(); |
212 void SetReceiverFrameLengthRange(int min_frame_length_ms, | |
213 int max_frame_length_ms); | |
214 | 214 |
215 // VoENetwork | 215 // VoENetwork |
216 int32_t RegisterExternalTransport(Transport* transport); | 216 int32_t RegisterExternalTransport(Transport* transport); |
217 int32_t DeRegisterExternalTransport(); | 217 int32_t DeRegisterExternalTransport(); |
218 int32_t ReceivedRTPPacket(const uint8_t* received_packet, | 218 int32_t ReceivedRTPPacket(const uint8_t* received_packet, |
219 size_t length, | 219 size_t length, |
220 const PacketTime& packet_time); | 220 const PacketTime& packet_time); |
221 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length); | 221 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length); |
222 | 222 |
223 // VoEFile | 223 // VoEFile |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 548 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
549 | 549 |
550 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 550 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
551 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 551 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
552 }; | 552 }; |
553 | 553 |
554 } // namespace voe | 554 } // namespace voe |
555 } // namespace webrtc | 555 } // namespace webrtc |
556 | 556 |
557 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 557 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
OLD | NEW |