| OLD | NEW |
| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_; | 113 rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_; |
| 114 // The primary instance of WebRtc VoiceEngine. | 114 // The primary instance of WebRtc VoiceEngine. |
| 115 std::unique_ptr<VoEWrapper> voe_wrapper_; | 115 std::unique_ptr<VoEWrapper> voe_wrapper_; |
| 116 rtc::scoped_refptr<webrtc::AudioState> audio_state_; | 116 rtc::scoped_refptr<webrtc::AudioState> audio_state_; |
| 117 std::vector<AudioCodec> codecs_; | 117 std::vector<AudioCodec> codecs_; |
| 118 std::vector<WebRtcVoiceMediaChannel*> channels_; | 118 std::vector<WebRtcVoiceMediaChannel*> channels_; |
| 119 webrtc::Config voe_config_; | 119 webrtc::Config voe_config_; |
| 120 bool is_dumping_aec_ = false; | 120 bool is_dumping_aec_ = false; |
| 121 | 121 |
| 122 webrtc::AgcConfig default_agc_config_; | 122 webrtc::AgcConfig default_agc_config_; |
| 123 // Cache received extended_filter_aec, delay_agnostic_aec and experimental_ns | 123 // Cache received extended_filter_aec, delay_agnostic_aec, experimental_ns and |
| 124 // values, and apply them in case they are missing in the audio options. We | 124 // intelligibility_enhancer values, and apply them in case they are missing |
| 125 // need to do this because SetExtraOptions() will revert to defaults for | 125 // in the audio options. We need to do this because SetExtraOptions() will |
| 126 // options which are not provided. | 126 // revert to defaults for options which are not provided. |
| 127 rtc::Optional<bool> extended_filter_aec_; | 127 rtc::Optional<bool> extended_filter_aec_; |
| 128 rtc::Optional<bool> delay_agnostic_aec_; | 128 rtc::Optional<bool> delay_agnostic_aec_; |
| 129 rtc::Optional<bool> experimental_ns_; | 129 rtc::Optional<bool> experimental_ns_; |
| 130 rtc::Optional<bool> intelligibility_enhancer_; |
| 130 | 131 |
| 131 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceEngine); | 132 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceEngine); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 // WebRtcVoiceMediaChannel is an implementation of VoiceMediaChannel that uses | 135 // WebRtcVoiceMediaChannel is an implementation of VoiceMediaChannel that uses |
| 135 // WebRtc Voice Engine. | 136 // WebRtc Voice Engine. |
| 136 class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, | 137 class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, |
| 137 public webrtc::Transport { | 138 public webrtc::Transport { |
| 138 public: | 139 public: |
| 139 WebRtcVoiceMediaChannel(WebRtcVoiceEngine* engine, | 140 WebRtcVoiceMediaChannel(WebRtcVoiceEngine* engine, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 int cng_payload_type = -1; | 287 int cng_payload_type = -1; |
| 287 int cng_plfreq = -1; | 288 int cng_plfreq = -1; |
| 288 webrtc::CodecInst codec_inst; | 289 webrtc::CodecInst codec_inst; |
| 289 } send_codec_spec_; | 290 } send_codec_spec_; |
| 290 | 291 |
| 291 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 292 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
| 292 }; | 293 }; |
| 293 } // namespace cricket | 294 } // namespace cricket |
| 294 | 295 |
| 295 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 296 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
| OLD | NEW |