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 |
11 #include "webrtc/modules/audio_processing/echo_cancellation_impl.h" | 11 #include "webrtc/modules/audio_processing/echo_cancellation_impl.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 extern "C" { | |
17 #include "webrtc/modules/audio_processing/aec/aec_core.h" | 16 #include "webrtc/modules/audio_processing/aec/aec_core.h" |
18 } | |
19 #include "webrtc/modules/audio_processing/aec/echo_cancellation.h" | 17 #include "webrtc/modules/audio_processing/aec/echo_cancellation.h" |
20 #include "webrtc/modules/audio_processing/audio_buffer.h" | 18 #include "webrtc/modules/audio_processing/audio_buffer.h" |
21 | 19 |
22 namespace webrtc { | 20 namespace webrtc { |
23 | 21 |
24 typedef void Handle; | 22 typedef void Handle; |
25 | 23 |
26 namespace { | 24 namespace { |
27 int16_t MapSetting(EchoCancellation::SuppressionLevel level) { | 25 int16_t MapSetting(EchoCancellation::SuppressionLevel level) { |
28 switch (level) { | 26 switch (level) { |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 // Not locked as it only relies on APM public API which is threadsafe. | 501 // Not locked as it only relies on APM public API which is threadsafe. |
504 return apm_->num_output_channels() * apm_->num_reverse_channels(); | 502 return apm_->num_output_channels() * apm_->num_reverse_channels(); |
505 } | 503 } |
506 | 504 |
507 int EchoCancellationImpl::GetHandleError(void* handle) const { | 505 int EchoCancellationImpl::GetHandleError(void* handle) const { |
508 // Not locked as it does not rely on anything in the state. | 506 // Not locked as it does not rely on anything in the state. |
509 assert(handle != NULL); | 507 assert(handle != NULL); |
510 return AudioProcessing::kUnspecifiedError; | 508 return AudioProcessing::kUnspecifiedError; |
511 } | 509 } |
512 } // namespace webrtc | 510 } // namespace webrtc |
OLD | NEW |