Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: webrtc/voice_engine/channel.h

Issue 2177263002: Regression test for issue where Opus DTX status was being forgotten. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Initial version. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 int32_t GetRecCodec(CodecInst& codec); 221 int32_t GetRecCodec(CodecInst& codec);
222 int32_t SetSendCodec(const CodecInst& codec); 222 int32_t SetSendCodec(const CodecInst& codec);
223 void SetBitRate(int bitrate_bps); 223 void SetBitRate(int bitrate_bps);
224 int32_t SetVADStatus(bool enableVAD, ACMVADMode mode, bool disableDTX); 224 int32_t SetVADStatus(bool enableVAD, ACMVADMode mode, bool disableDTX);
225 int32_t GetVADStatus(bool& enabledVAD, ACMVADMode& mode, bool& disabledDTX); 225 int32_t GetVADStatus(bool& enabledVAD, ACMVADMode& mode, bool& disabledDTX);
226 int32_t SetRecPayloadType(const CodecInst& codec); 226 int32_t SetRecPayloadType(const CodecInst& codec);
227 int32_t GetRecPayloadType(CodecInst& codec); 227 int32_t GetRecPayloadType(CodecInst& codec);
228 int32_t SetSendCNPayloadType(int type, PayloadFrequencies frequency); 228 int32_t SetSendCNPayloadType(int type, PayloadFrequencies frequency);
229 int SetOpusMaxPlaybackRate(int frequency_hz); 229 int SetOpusMaxPlaybackRate(int frequency_hz);
230 int SetOpusDtx(bool enable_dtx); 230 int SetOpusDtx(bool enable_dtx);
231 int GetOpusDtx(bool* enabled);
232
231 233
232 // VoENetwork 234 // VoENetwork
233 int32_t RegisterExternalTransport(Transport* transport); 235 int32_t RegisterExternalTransport(Transport* transport);
234 int32_t DeRegisterExternalTransport(); 236 int32_t DeRegisterExternalTransport();
235 int32_t ReceivedRTPPacket(const uint8_t* received_packet, 237 int32_t ReceivedRTPPacket(const uint8_t* received_packet,
236 size_t length, 238 size_t length,
237 const PacketTime& packet_time); 239 const PacketTime& packet_time);
238 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length); 240 int32_t ReceivedRTCPPacket(const uint8_t* data, size_t length);
239 241
240 // VoEFile 242 // VoEFile
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; 592 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_;
591 593
592 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. 594 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed.
593 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 595 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
594 }; 596 };
595 597
596 } // namespace voe 598 } // namespace voe
597 } // namespace webrtc 599 } // namespace webrtc
598 600
599 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ 601 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698