| 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 15 matching lines...) Expand all Loading... |
| 26 return 0; | 26 return 0; |
| 27 case EchoControlMobile::kEarpiece: | 27 case EchoControlMobile::kEarpiece: |
| 28 return 1; | 28 return 1; |
| 29 case EchoControlMobile::kLoudEarpiece: | 29 case EchoControlMobile::kLoudEarpiece: |
| 30 return 2; | 30 return 2; |
| 31 case EchoControlMobile::kSpeakerphone: | 31 case EchoControlMobile::kSpeakerphone: |
| 32 return 3; | 32 return 3; |
| 33 case EchoControlMobile::kLoudSpeakerphone: | 33 case EchoControlMobile::kLoudSpeakerphone: |
| 34 return 4; | 34 return 4; |
| 35 } | 35 } |
| 36 RTC_DCHECK(false); | 36 RTC_NOTREACHED(); |
| 37 return -1; | 37 return -1; |
| 38 } | 38 } |
| 39 | 39 |
| 40 AudioProcessing::Error MapError(int err) { | 40 AudioProcessing::Error MapError(int err) { |
| 41 switch (err) { | 41 switch (err) { |
| 42 case AECM_UNSUPPORTED_FUNCTION_ERROR: | 42 case AECM_UNSUPPORTED_FUNCTION_ERROR: |
| 43 return AudioProcessing::kUnsupportedFunctionError; | 43 return AudioProcessing::kUnsupportedFunctionError; |
| 44 case AECM_NULL_POINTER_ERROR: | 44 case AECM_NULL_POINTER_ERROR: |
| 45 return AudioProcessing::kNullPointerError; | 45 return AudioProcessing::kNullPointerError; |
| 46 case AECM_BAD_PARAMETER_ERROR: | 46 case AECM_BAD_PARAMETER_ERROR: |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 for (auto& canceller : cancellers_) { | 382 for (auto& canceller : cancellers_) { |
| 383 int handle_error = WebRtcAecm_set_config(canceller->state(), config); | 383 int handle_error = WebRtcAecm_set_config(canceller->state(), config); |
| 384 if (handle_error != AudioProcessing::kNoError) { | 384 if (handle_error != AudioProcessing::kNoError) { |
| 385 error = handle_error; | 385 error = handle_error; |
| 386 } | 386 } |
| 387 } | 387 } |
| 388 return error; | 388 return error; |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace webrtc | 391 } // namespace webrtc |
| OLD | NEW |