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

Unified Diff: webrtc/common_audio/lapped_transform.h

Issue 2320833002: Compensate for the IntelligibilityEnhancer processing delay in high bands (Closed)
Patch Set: Implement DelayBuffer helper class Created 4 years, 3 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: webrtc/common_audio/lapped_transform.h
diff --git a/webrtc/common_audio/lapped_transform.h b/webrtc/common_audio/lapped_transform.h
index 0d668d0fed1567f1d088298baf6c92157b962e43..298d71eb4006714a682f7a57af05d3aa1b94d6cc 100644
--- a/webrtc/common_audio/lapped_transform.h
+++ b/webrtc/common_audio/lapped_transform.h
@@ -86,6 +86,12 @@ class LappedTransform {
// constructor.
size_t num_out_channels() const { return num_out_channels_; }
+ // Get the initial delay.
+ //
+ // This is the delay introduced by the |blocker_| to be able to get and return
+ // chunks of |chunk_length|, but process blocks of |block_length|.
+ size_t initial_delay() const { return blocker_.initial_delay(); }
+
private:
// Internal middleware callback, given to the blocker. Transforms each block
// and hands it over to the processing method given at construction time.

Powered by Google App Engine
This is Rietveld 408576698