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

Unified Diff: webrtc/common_audio/smoothing_filter.h

Issue 2546493002: Update smoothed bitrate. (Closed)
Patch Set: Fix thread safety problem and changed smoothing filter. Created 4 years 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/common_audio/smoothing_filter.h
diff --git a/webrtc/common_audio/smoothing_filter.h b/webrtc/common_audio/smoothing_filter.h
index 03eb718d54f05c3c2df7d30ae5984a4ef2443ae8..b055c60d6d570d09bfa9c2e84bf4a7264718a0d1 100644
--- a/webrtc/common_audio/smoothing_filter.h
+++ b/webrtc/common_audio/smoothing_filter.h
@@ -46,6 +46,7 @@ class SmoothingFilterImpl final : public SmoothingFilter {
bool initialized_;
int64_t first_sample_time_ms_;
int64_t last_sample_time_ms_;
+ float last_sample_;
rtc::ExpFilter filter_;
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SmoothingFilterImpl);

Powered by Google App Engine
This is Rietveld 408576698