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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // the public APM API. | 271 // the public APM API. |
272 Initialize(stream_properties_->sample_rate_hz, | 272 Initialize(stream_properties_->sample_rate_hz, |
273 stream_properties_->num_reverse_channels, | 273 stream_properties_->num_reverse_channels, |
274 stream_properties_->num_output_channels); | 274 stream_properties_->num_output_channels); |
275 } else { | 275 } else { |
276 enabled_ = enable; | 276 enabled_ = enable; |
277 } | 277 } |
278 return AudioProcessing::kNoError; | 278 return AudioProcessing::kNoError; |
279 } | 279 } |
280 | 280 |
| 281 bool EchoControlMobileImpl::is_enabled_render_side_query() const { |
| 282 // TODO(peah): Add threadchecker. |
| 283 rtc::CritScope cs_render(crit_render_); |
| 284 return enabled_; |
| 285 } |
| 286 |
281 bool EchoControlMobileImpl::is_enabled() const { | 287 bool EchoControlMobileImpl::is_enabled() const { |
282 rtc::CritScope cs(crit_capture_); | 288 rtc::CritScope cs(crit_capture_); |
283 return enabled_; | 289 return enabled_; |
284 } | 290 } |
285 | 291 |
286 int EchoControlMobileImpl::set_routing_mode(RoutingMode mode) { | 292 int EchoControlMobileImpl::set_routing_mode(RoutingMode mode) { |
287 if (MapSetting(mode) == -1) { | 293 if (MapSetting(mode) == -1) { |
288 return AudioProcessing::kBadParameterError; | 294 return AudioProcessing::kBadParameterError; |
289 } | 295 } |
290 | 296 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 } | 445 } |
440 return error; | 446 return error; |
441 } | 447 } |
442 | 448 |
443 size_t EchoControlMobileImpl::num_handles_required() const { | 449 size_t EchoControlMobileImpl::num_handles_required() const { |
444 RTC_DCHECK(stream_properties_); | 450 RTC_DCHECK(stream_properties_); |
445 return stream_properties_->num_output_channels * | 451 return stream_properties_->num_output_channels * |
446 stream_properties_->num_reverse_channels; | 452 stream_properties_->num_reverse_channels; |
447 } | 453 } |
448 } // namespace webrtc | 454 } // namespace webrtc |
OLD | NEW |