Index: webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
diff --git a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
index 954aac7d4af36b40c9c7861e7457c10ca2488643..7466d006d89e3d800ce654253f5496fdbd63c842 100644 |
--- a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
+++ b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc |
@@ -40,22 +40,6 @@ int16_t MapSetting(EchoControlMobile::RoutingMode mode) { |
return -1; |
} |
-AudioProcessing::Error MapError(int err) { |
- switch (err) { |
- case AECM_UNSUPPORTED_FUNCTION_ERROR: |
- return AudioProcessing::kUnsupportedFunctionError; |
- case AECM_NULL_POINTER_ERROR: |
- return AudioProcessing::kNullPointerError; |
- case AECM_BAD_PARAMETER_ERROR: |
- return AudioProcessing::kBadParameterError; |
- case AECM_BAD_PARAMETER_WARNING: |
- return AudioProcessing::kBadStreamParameterWarning; |
- default: |
- // AECM_UNSPECIFIED_ERROR |
- // AECM_UNINITIALIZED_ERROR |
- return AudioProcessing::kUnspecifiedError; |
- } |
-} |
} // namespace |
size_t EchoControlMobile::echo_path_size_bytes() { |
@@ -289,6 +273,6 @@ int EchoControlMobileImpl::num_handles_required() const { |
int EchoControlMobileImpl::GetHandleError(void* handle) const { |
assert(handle != NULL); |
- return MapError(WebRtcAecm_get_error_code(static_cast<Handle*>(handle))); |
+ return AudioProcessing::kUnspecifiedError; |
} |
} // namespace webrtc |