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

Unified Diff: third_party/WebKit/Source/platform/audio/DynamicsCompressor.h

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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
Index: third_party/WebKit/Source/platform/audio/DynamicsCompressor.h
diff --git a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.h b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.h
index 13f0a87559a2a16d6f9ef5efb13f5e7394600c38..119b6daabef2c3982b3bbb42c040e4ad0e87a45b 100644
--- a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.h
+++ b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.h
@@ -83,10 +83,15 @@ class PLATFORM_EXPORT DynamicsCompressor {
float SampleRate() const { return sample_rate_; }
float Nyquist() const { return sample_rate_ / 2; }
- double TailTime() const { return 0; }
+ double TailTime() const;
double LatencyTime() const {
return compressor_.LatencyFrames() / static_cast<double>(SampleRate());
}
+ bool RequiresTailProcessing() const {
+ // Always return true even if the tail time and latency might both
+ // be zero.
+ return true;
+ }
protected:
unsigned number_of_channels_;

Powered by Google App Engine
This is Rietveld 408576698