OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 void EnableStereoChannelSwapping(bool enable) override { | 325 void EnableStereoChannelSwapping(bool enable) override { |
326 stereo_swapping_enabled_ = enable; | 326 stereo_swapping_enabled_ = enable; |
327 } | 327 } |
328 size_t GetNetEqCapacity() const { | 328 size_t GetNetEqCapacity() const { |
329 auto ch = channels_.find(last_channel_); | 329 auto ch = channels_.find(last_channel_); |
330 RTC_DCHECK(ch != channels_.end()); | 330 RTC_DCHECK(ch != channels_.end()); |
331 return ch->second->neteq_capacity; | 331 return ch->second->neteq_capacity; |
332 } | 332 } |
333 bool GetNetEqFastAccelerate() const { | 333 bool GetNetEqFastAccelerate() const { |
334 auto ch = channels_.find(last_channel_); | 334 auto ch = channels_.find(last_channel_); |
335 RTC_DCHECK(ch != channels_.end()); | 335 RTC_CHECK(ch != channels_.end()); |
336 return ch->second->neteq_fast_accelerate; | 336 return ch->second->neteq_fast_accelerate; |
337 } | 337 } |
338 | 338 |
339 private: | 339 private: |
340 bool inited_ = false; | 340 bool inited_ = false; |
341 int last_channel_ = -1; | 341 int last_channel_ = -1; |
342 std::map<int, Channel*> channels_; | 342 std::map<int, Channel*> channels_; |
343 bool fail_create_channel_ = false; | 343 bool fail_create_channel_ = false; |
344 bool ec_enabled_ = false; | 344 bool ec_enabled_ = false; |
345 bool ec_metrics_enabled_ = false; | 345 bool ec_metrics_enabled_ = false; |
346 bool cng_enabled_ = false; | 346 bool cng_enabled_ = false; |
347 bool ns_enabled_ = false; | 347 bool ns_enabled_ = false; |
348 bool agc_enabled_ = false; | 348 bool agc_enabled_ = false; |
349 bool highpass_filter_enabled_ = false; | 349 bool highpass_filter_enabled_ = false; |
350 bool stereo_swapping_enabled_ = false; | 350 bool stereo_swapping_enabled_ = false; |
351 bool typing_detection_enabled_ = false; | 351 bool typing_detection_enabled_ = false; |
352 webrtc::EcModes ec_mode_ = webrtc::kEcDefault; | 352 webrtc::EcModes ec_mode_ = webrtc::kEcDefault; |
353 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; | 353 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; |
354 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; | 354 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; |
355 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; | 355 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; |
356 webrtc::AgcConfig agc_config_; | 356 webrtc::AgcConfig agc_config_; |
357 webrtc::AudioProcessing* apm_ = nullptr; | 357 webrtc::AudioProcessing* apm_ = nullptr; |
358 | 358 |
359 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine); | 359 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine); |
360 }; | 360 }; |
361 | 361 |
362 } // namespace cricket | 362 } // namespace cricket |
363 | 363 |
364 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ | 364 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |