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

Unified Diff: webrtc/common_audio/smoothing_filter.h

Issue 2503713003: Smooth BWE and pass it to Audio Network Adaptor. (Closed)
Patch Set: Rebased 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
« no previous file with comments | « webrtc/common_audio/mocks/mock_smoothing_filter.h ('k') | 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 64a83d14848ae6200edefd4a6d6e271feac12242..03eb718d54f05c3c2df7d30ae5984a4ef2443ae8 100644
--- a/webrtc/common_audio/smoothing_filter.h
+++ b/webrtc/common_audio/smoothing_filter.h
@@ -23,6 +23,7 @@ class SmoothingFilter {
virtual ~SmoothingFilter() = default;
virtual void AddSample(float sample) = 0;
virtual rtc::Optional<float> GetAverage() const = 0;
+ virtual void SetTimeConstantMs(int time_constant_ms) = 0;
};
// SmoothingFilterImpl applies an exponential filter
@@ -35,9 +36,10 @@ class SmoothingFilterImpl final : public SmoothingFilter {
void AddSample(float sample) override;
rtc::Optional<float> GetAverage() const override;
+ void SetTimeConstantMs(int time_constant_ms) override;
private:
- const int time_constant_ms_;
+ int time_constant_ms_;
const Clock* const clock_;
bool first_sample_received_;
« no previous file with comments | « webrtc/common_audio/mocks/mock_smoothing_filter.h ('k') | webrtc/common_audio/smoothing_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698