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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.h

Issue 2095563002: Adding activation logic of the new APM level control functionality using MediaConstraints (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ALC_RC2_CL
Patch Set: Created 4 years, 5 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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 rtc::scoped_refptr<webrtc::AudioDecoderFactory> decoder_factory_; 139 rtc::scoped_refptr<webrtc::AudioDecoderFactory> decoder_factory_;
140 // The primary instance of WebRtc VoiceEngine. 140 // The primary instance of WebRtc VoiceEngine.
141 std::unique_ptr<VoEWrapper> voe_wrapper_; 141 std::unique_ptr<VoEWrapper> voe_wrapper_;
142 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 142 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
143 std::vector<AudioCodec> codecs_; 143 std::vector<AudioCodec> codecs_;
144 std::vector<WebRtcVoiceMediaChannel*> channels_; 144 std::vector<WebRtcVoiceMediaChannel*> channels_;
145 webrtc::Config voe_config_; 145 webrtc::Config voe_config_;
146 bool is_dumping_aec_ = false; 146 bool is_dumping_aec_ = false;
147 147
148 webrtc::AgcConfig default_agc_config_; 148 webrtc::AgcConfig default_agc_config_;
149 // Cache received extended_filter_aec, delay_agnostic_aec, experimental_ns and 149 // Cache received extended_filter_aec, delay_agnostic_aec, experimental_ns
150 // intelligibility_enhancer values, and apply them in case they are missing 150 // level controller, and intelligibility_enhancer values, and apply them
151 // in the audio options. We need to do this because SetExtraOptions() will 151 // in case they are missing in the audio options. We need to do this because
152 // revert to defaults for options which are not provided. 152 // SetExtraOptions() will revert to defaults for options which are not
153 // provided.
153 rtc::Optional<bool> extended_filter_aec_; 154 rtc::Optional<bool> extended_filter_aec_;
154 rtc::Optional<bool> delay_agnostic_aec_; 155 rtc::Optional<bool> delay_agnostic_aec_;
155 rtc::Optional<bool> experimental_ns_; 156 rtc::Optional<bool> experimental_ns_;
156 rtc::Optional<bool> intelligibility_enhancer_; 157 rtc::Optional<bool> intelligibility_enhancer_;
158 rtc::Optional<bool> level_control_;
157 159
158 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceEngine); 160 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceEngine);
159 }; 161 };
160 162
161 // WebRtcVoiceMediaChannel is an implementation of VoiceMediaChannel that uses 163 // WebRtcVoiceMediaChannel is an implementation of VoiceMediaChannel that uses
162 // WebRtc Voice Engine. 164 // WebRtc Voice Engine.
163 class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, 165 class WebRtcVoiceMediaChannel final : public VoiceMediaChannel,
164 public webrtc::Transport { 166 public webrtc::Transport {
165 public: 167 public:
166 WebRtcVoiceMediaChannel(WebRtcVoiceEngine* engine, 168 WebRtcVoiceMediaChannel(WebRtcVoiceEngine* engine,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_; 304 std::map<uint32_t, WebRtcAudioReceiveStream*> recv_streams_;
303 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 305 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
304 306
305 SendCodecSpec send_codec_spec_; 307 SendCodecSpec send_codec_spec_;
306 308
307 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 309 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
308 }; 310 };
309 } // namespace cricket 311 } // namespace cricket
310 312
311 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 313 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698