annotate MatchFeeder.h @ 5:a02321c31884

...
author cannam
date Tue, 02 Dec 2008 13:13:25 +0000
parents 640f92242cc1
children cdead4a52755
rev   line source
cannam@0 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
cannam@0 2 /*
cannam@0 3 Vamp feature extraction plugin using the MATCH audio alignment
cannam@0 4 algorithm.
cannam@0 5
cannam@0 6 Centre for Digital Music, Queen Mary, University of London.
cannam@0 7 This file copyright 2007 Simon Dixon, Chris Cannam and QMUL.
cannam@0 8
cannam@0 9 This program is free software; you can redistribute it and/or
cannam@0 10 modify it under the terms of the GNU General Public License as
cannam@0 11 published by the Free Software Foundation; either version 2 of the
cannam@0 12 License, or (at your option) any later version. See the file
cannam@0 13 COPYING included with this distribution for more information.
cannam@0 14 */
cannam@0 15
cannam@0 16 #ifndef _MATCH_FEEDER_H_
cannam@0 17 #define _MATCH_FEEDER_H_
cannam@0 18
cannam@0 19 #include "Matcher.h"
cannam@0 20 #include "Finder.h"
cannam@0 21
cannam@0 22 #include <queue>
cannam@0 23
cannam@0 24 class MatchFeeder
cannam@0 25 {
cannam@0 26 public:
cannam@0 27 MatchFeeder(Matcher *m1, Matcher *m2);
cannam@0 28 ~MatchFeeder();
cannam@0 29
cannam@0 30 void feed(const float *const *input);
cannam@0 31
cannam@0 32 Finder *getFinder() { return finder; }
cannam@0 33
cannam@0 34 protected:
cannam@0 35 void feedBlock();
cannam@0 36 void feed1();
cannam@0 37 void feed2();
cannam@0 38
cannam@0 39 Finder *finder;
cannam@0 40 Matcher *pm1;
cannam@0 41 Matcher *pm2;
cannam@0 42
cannam@0 43 size_t fftSize;
cannam@0 44 double *reBuffer;
cannam@0 45 double *imBuffer;
cannam@0 46
cannam@0 47 std::queue<float *> q1;
cannam@0 48 std::queue<float *> q2;
cannam@0 49 };
cannam@0 50
cannam@0 51 #endif