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

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

Issue 2535523002: Refactor RMSLevel and give it new functionality (Closed)
Patch Set: Fixing win64 compile Created 4 years, 1 month 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
Index: webrtc/modules/audio_processing/level_estimator_impl.cc
diff --git a/webrtc/modules/audio_processing/level_estimator_impl.cc b/webrtc/modules/audio_processing/level_estimator_impl.cc
index 187873e33e00f2e20bb3745045eedb06c322e3eb..a1b3da611064f7fd913984025fc16ed3ef5fd8c5 100644
--- a/webrtc/modules/audio_processing/level_estimator_impl.cc
+++ b/webrtc/modules/audio_processing/level_estimator_impl.cc
@@ -36,7 +36,8 @@ void LevelEstimatorImpl::ProcessStream(AudioBuffer* audio) {
}
for (size_t i = 0; i < audio->num_channels(); i++) {
- rms_->Process(audio->channels_const()[i], audio->num_frames());
+ rms_->Process(rtc::ArrayView<const int16_t>(audio->channels_const()[i],
+ audio->num_frames()));
}
}
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/rms_level.h » ('j') | webrtc/modules/audio_processing/rms_level.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698