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

Unified Diff: webrtc/common_audio/smoothing_filter.h

Issue 2782563003: Replace Clock with timeutils in AudioEncoder. (Closed)
Patch Set: Fix for failing unittest. Created 3 years, 8 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 | « webrtc/common_audio/BUILD.gn ('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 4a0efd99b6d5fa605a5e82c3157a638b449d0636..39bc56a48d4f9f5bb42239175accd7ff61d8cd1e 100644
--- a/webrtc/common_audio/smoothing_filter.h
+++ b/webrtc/common_audio/smoothing_filter.h
@@ -40,7 +40,7 @@ class SmoothingFilterImpl final : public SmoothingFilter {
// earlier samples quickly. After the initialization period, the time constant
// will be set to |init_time_ms| first and can be changed through
// |SetTimeConstantMs|.
- SmoothingFilterImpl(int init_time_ms, const Clock* clock);
+ explicit SmoothingFilterImpl(int init_time_ms);
~SmoothingFilterImpl() override;
void AddSample(float sample) override;
@@ -57,7 +57,6 @@ class SmoothingFilterImpl final : public SmoothingFilter {
const int init_time_ms_;
const float init_factor_;
const float init_const_;
- const Clock* const clock_;
rtc::Optional<int64_t> init_end_time_ms_;
float last_sample_;
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | webrtc/common_audio/smoothing_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698