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

Unified Diff: webrtc/voice_engine/channel.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/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index bdf6fb538798ed8bc1851ab845389aa15b7fcb37..d8c7dbb7707b391f94ba67574d1e3255b87cf6e2 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -2766,7 +2766,8 @@ uint32_t Channel::PrepareEncodeAndSend(int mixingFrequency) {
if (is_muted && previous_frame_muted_) {
rms_level_.ProcessMuted(length);
} else {
- rms_level_.Process(_audioFrame.data_, length);
+ rms_level_.Process(
+ rtc::ArrayView<const int16_t>(_audioFrame.data_, length));
peah-webrtc 2016/11/29 08:57:13 You should probably add the include array_view.h.
hlundin-webrtc 2016/11/29 10:24:55 Done.
}
}
previous_frame_muted_ = is_muted;

Powered by Google App Engine
This is Rietveld 408576698