diff options
author | peah <peah@webrtc.org> | 2015-11-16 16:27:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-17 00:27:50 +0000 |
commit | fa6228e221d818af55e3d8343c792f2c1ecc7252 (patch) | |
tree | d41b1c1dffb204886f84539fc3368822bbde28f6 /webrtc/modules/audio_processing/processing_component.h | |
parent | 4c27e4b62da2047063d88eedfeec3e939fea7843 (diff) | |
download | webrtc-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.h | 16 |
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(); |