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

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_utils.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/modules/audio_processing/intelligibility/intelligibility_utils.h
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
index b5cc075140ff0bc97ea97b98445ac9e3ab531ab6..5fa53e0bb5f5b002528495524a9c39e2b20944ee 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
@@ -65,6 +65,20 @@ class GainApplier {
std::vector<float> current_;
};
+// Helper class to delay a signal by an integer number of samples.
+class DelayBuffer {
+ public:
+ DelayBuffer(size_t delay, size_t num_channels);
+
peah-webrtc 2016/09/16 13:35:56 dd
aluebs-webrtc 2016/09/17 00:48:48 Acknowledged. https://google.github.io/styleguide/
+ ~DelayBuffer();
+
peah-webrtc 2016/09/16 13:35:56 dd
aluebs-webrtc 2016/09/17 00:48:48 Acknowledged. https://google.github.io/styleguide/
+ void Delay(float* const* data, size_t length);
+
+ private:
+ std::vector<std::vector<float>> buffer;
+ size_t read_index;
+};
+
} // namespace intelligibility
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698