aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/audio_processing/processing_component.h
diff options
context:
space:
mode:
authorpeah <peah@webrtc.org>2015-11-16 16:27:42 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-17 00:27:50 +0000
commitfa6228e221d818af55e3d8343c792f2c1ecc7252 (patch)
treed41b1c1dffb204886f84539fc3368822bbde28f6 /webrtc/modules/audio_processing/processing_component.h
parent4c27e4b62da2047063d88eedfeec3e939fea7843 (diff)
downloadwebrtc-fa6228e221d818af55e3d8343c792f2c1ecc7252.tar.gz
Introduced the render sample queue for the aec and aecm.
BUG=webrtc:5099 Review URL: https://codereview.webrtc.org/1410833002 Cr-Commit-Position: refs/heads/master@{#10662}
Diffstat (limited to 'webrtc/modules/audio_processing/processing_component.h')
-rw-r--r--webrtc/modules/audio_processing/processing_component.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/webrtc/modules/audio_processing/processing_component.h b/webrtc/modules/audio_processing/processing_component.h
index 8ee3ac6c7d..291aea3922 100644
--- a/webrtc/modules/audio_processing/processing_component.h
+++ b/webrtc/modules/audio_processing/processing_component.h
@@ -17,6 +17,22 @@
namespace webrtc {
+// Functor to use when supplying a verifier function for the queue item
+// verifcation.
+template <typename T>
+class RenderQueueItemVerifier {
+ public:
+ explicit RenderQueueItemVerifier(size_t minimum_capacity)
+ : minimum_capacity_(minimum_capacity) {}
+
+ bool operator()(const std::vector<T>& v) const {
+ return v.capacity() >= minimum_capacity_;
+ }
+
+ private:
+ size_t minimum_capacity_;
+};
+
class ProcessingComponent {
public:
ProcessingComponent();