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

Side by Side Diff: webrtc/voice_engine/voe_hardware_impl.cc

Issue 1344563002: Improving support for Android Audio Effects in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved comments Created 5 years, 2 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
« no previous file with comments | « webrtc/voice_engine/voe_hardware_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « webrtc/voice_engine/voe_hardware_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698