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}
This commit is contained in:
peah
2015-11-16 16:27:42 -08:00
committed by Commit bot
parent 4c27e4b62d
commit fa6228e221
6 changed files with 250 additions and 24 deletions

View File

@ -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();