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

Unified Diff: webrtc/common_audio/smoothing_filter.h

Issue 2687433004: TWCC-PLR -based FecController doesn’t need smoothing (Closed)
Patch Set: Rebased. Created 3 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 | « no previous file | webrtc/common_audio/smoothing_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/smoothing_filter.h
diff --git a/webrtc/common_audio/smoothing_filter.h b/webrtc/common_audio/smoothing_filter.h
index 4a0efd99b6d5fa605a5e82c3157a638b449d0636..85adb8fb51963cbf5ee52c5c347d8d00f53d0b47 100644
--- a/webrtc/common_audio/smoothing_filter.h
+++ b/webrtc/common_audio/smoothing_filter.h
@@ -68,6 +68,18 @@ class SmoothingFilterImpl final : public SmoothingFilter {
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SmoothingFilterImpl);
};
+class NullSmoothingFilter final : public SmoothingFilter {
minyue-webrtc 2017/03/22 09:40:55 can we move NullSmoothingFilter to fec controller
elad.alon_webrtc.org 2017/03/22 10:14:25 That's possible. On the other hand, what if somebo
+ public:
+ NullSmoothingFilter();
+ ~NullSmoothingFilter() override;
+ void AddSample(float sample) override;
+ rtc::Optional<float> GetAverage() override;
+ bool SetTimeConstantMs(int time_constant_ms) override;
+
+ private:
+ rtc::Optional<float> last_sample_;
+};
+
} // namespace webrtc
#endif // WEBRTC_COMMON_AUDIO_SMOOTHING_FILTER_H_
« no previous file with comments | « no previous file | webrtc/common_audio/smoothing_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698