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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 } | 473 } |
474 | 474 |
475 int VoEHardwareImpl::EnableBuiltInAEC(bool enable) { | 475 int VoEHardwareImpl::EnableBuiltInAEC(bool enable) { |
476 if (!_shared->statistics().Initialized()) { | 476 if (!_shared->statistics().Initialized()) { |
477 _shared->SetLastError(VE_NOT_INITED, kTraceError); | 477 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
478 return -1; | 478 return -1; |
479 } | 479 } |
480 return _shared->audio_device()->EnableBuiltInAEC(enable); | 480 return _shared->audio_device()->EnableBuiltInAEC(enable); |
481 } | 481 } |
482 | 482 |
| 483 bool VoEHardwareImpl::BuiltInAGCIsAvailable() const { |
| 484 if (!_shared->statistics().Initialized()) { |
| 485 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
| 486 return false; |
| 487 } |
| 488 return _shared->audio_device()->BuiltInAGCIsAvailable(); |
| 489 } |
| 490 |
| 491 int VoEHardwareImpl::EnableBuiltInAGC(bool enable) { |
| 492 if (!_shared->statistics().Initialized()) { |
| 493 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
| 494 return -1; |
| 495 } |
| 496 return _shared->audio_device()->EnableBuiltInAGC(enable); |
| 497 } |
| 498 |
| 499 bool VoEHardwareImpl::BuiltInNSIsAvailable() const { |
| 500 if (!_shared->statistics().Initialized()) { |
| 501 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
| 502 return false; |
| 503 } |
| 504 return _shared->audio_device()->BuiltInNSIsAvailable(); |
| 505 } |
| 506 |
| 507 int VoEHardwareImpl::EnableBuiltInNS(bool enable) { |
| 508 if (!_shared->statistics().Initialized()) { |
| 509 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
| 510 return -1; |
| 511 } |
| 512 return _shared->audio_device()->EnableBuiltInNS(enable); |
| 513 } |
| 514 |
483 #endif // WEBRTC_VOICE_ENGINE_HARDWARE_API | 515 #endif // WEBRTC_VOICE_ENGINE_HARDWARE_API |
484 | 516 |
485 } // namespace webrtc | 517 } // namespace webrtc |
OLD | NEW |