From fa6228e221d818af55e3d8343c792f2c1ecc7252 Mon Sep 17 00:00:00 2001 From: peah Date: Mon, 16 Nov 2015 16:27:42 -0800 Subject: 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} --- webrtc/modules/audio_processing/processing_component.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'webrtc/modules/audio_processing/processing_component.h') 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 +class RenderQueueItemVerifier { + public: + explicit RenderQueueItemVerifier(size_t minimum_capacity) + : minimum_capacity_(minimum_capacity) {} + + bool operator()(const std::vector& v) const { + return v.capacity() >= minimum_capacity_; + } + + private: + size_t minimum_capacity_; +}; + class ProcessingComponent { public: ProcessingComponent(); -- cgit v1.2.3