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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 } | 1150 } |
1151 | 1151 |
1152 bool AudioProcessingImpl::rev_synthesis_needed() const { | 1152 bool AudioProcessingImpl::rev_synthesis_needed() const { |
1153 return (is_rev_processed() && | 1153 return (is_rev_processed() && |
1154 formats_.rev_proc_format.sample_rate_hz() == kSampleRate32kHz); | 1154 formats_.rev_proc_format.sample_rate_hz() == kSampleRate32kHz); |
1155 } | 1155 } |
1156 | 1156 |
1157 bool AudioProcessingImpl::rev_analysis_needed() const { | 1157 bool AudioProcessingImpl::rev_analysis_needed() const { |
1158 return formats_.rev_proc_format.sample_rate_hz() == kSampleRate32kHz && | 1158 return formats_.rev_proc_format.sample_rate_hz() == kSampleRate32kHz && |
1159 (is_rev_processed() || | 1159 (is_rev_processed() || |
1160 public_submodules_->echo_cancellation->is_enabled() || | 1160 public_submodules_->echo_cancellation |
1161 public_submodules_->echo_control_mobile->is_enabled() || | 1161 ->is_enabled_render_side_query() || |
1162 public_submodules_->gain_control->is_enabled()); | 1162 public_submodules_->echo_control_mobile |
| 1163 ->is_enabled_render_side_query() || |
| 1164 public_submodules_->gain_control->is_enabled_render_side_query()); |
1163 } | 1165 } |
1164 | 1166 |
1165 bool AudioProcessingImpl::render_check_rev_conversion_needed() const { | 1167 bool AudioProcessingImpl::render_check_rev_conversion_needed() const { |
1166 return rev_conversion_needed(); | 1168 return rev_conversion_needed(); |
1167 } | 1169 } |
1168 | 1170 |
1169 bool AudioProcessingImpl::rev_conversion_needed() const { | 1171 bool AudioProcessingImpl::rev_conversion_needed() const { |
1170 return (formats_.api_format.reverse_input_stream() != | 1172 return (formats_.api_format.reverse_input_stream() != |
1171 formats_.api_format.reverse_output_stream()); | 1173 formats_.api_format.reverse_output_stream()); |
1172 } | 1174 } |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); | 1449 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); |
1448 | 1450 |
1449 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), | 1451 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), |
1450 &debug_dump_.num_bytes_left_for_log_, | 1452 &debug_dump_.num_bytes_left_for_log_, |
1451 &crit_debug_, &debug_dump_.capture)); | 1453 &crit_debug_, &debug_dump_.capture)); |
1452 return kNoError; | 1454 return kNoError; |
1453 } | 1455 } |
1454 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 1456 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
1455 | 1457 |
1456 } // namespace webrtc | 1458 } // namespace webrtc |
OLD | NEW |