Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 1844583003: Only split into bands when the reverse stream is analyzed in the APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_processing_impl.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc
index a09c1c9acf3362f53cbd9f968ad5a4b6a5cf0932..c816aaa1d415322c98905760b60b5196247c6891 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -1146,13 +1146,21 @@ bool AudioProcessingImpl::is_rev_processed() const {
return constants_.intelligibility_enabled;
}
+bool AudioProcessingImpl::is_rev_analyzed() const {
+ return is_rev_processed() ||
peah-webrtc 2016/03/30 13:01:11 As I see it, the purpose of this method is to avoi
aluebs-webrtc 2016/03/31 01:00:18 No, this change is to avoid doing reverse stream a
+ public_submodules_->echo_cancellation->is_enabled() ||
+ public_submodules_->echo_control_mobile->is_enabled() ||
+ public_submodules_->gain_control->is_enabled();
+}
+
bool AudioProcessingImpl::rev_synthesis_needed() const {
return (is_rev_processed() &&
is_multi_band(formats_.rev_proc_format.sample_rate_hz()));
}
bool AudioProcessingImpl::rev_analysis_needed() const {
- return is_multi_band(formats_.rev_proc_format.sample_rate_hz());
+ return is_rev_analyzed() &&
+ is_multi_band(formats_.rev_proc_format.sample_rate_hz());
}
bool AudioProcessingImpl::render_check_rev_conversion_needed() const {
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698