Essentia  2.1-beta5-dev
ringbuffervectoroutput.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
3  *
4  * This file is part of Essentia
5  *
6  * Essentia is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License as published by the Free
8  * Software Foundation (FSF), either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the Affero GNU General Public License
17  * version 3 along with this program. If not, see http://www.gnu.org/licenses/
18  */
19 
20 #ifndef ESSENTIA_STREAMING_RINGBUFFERVECTOROUTPUT_H
21 #define ESSENTIA_STREAMING_RINGBUFFERVECTOROUTPUT_H
22 
23 #include "../streamingalgorithm.h"
24 
25 namespace essentia {
26 namespace streaming {
27 
29  protected:
32 
33  public:
36 
37  int get(Real* outputData, int max);
38 
40 
42  declareParameter("bufferSize", "size of the ringbuffer", "", 8192);
43  }
44 
45  void configure();
46  void reset();
47 
48  static const char* name;
49  static const char* description;
50 
51 };
52 
53 } // namespace streaming
54 } // namespace essentia
55 
56 #endif // ESSENTIA_STREAMING_RINGBUFFEROUTPUT_H
Definition: ringbuffervectoroutput.h:28
void declareParameter(const std::string &name, const std::string &desc, const std::string &range, const Parameter &defaultValue)
float Real
Definition: types.h:68
Definition: ringbufferimpl.h:107
class RingBufferImpl * _impl
Definition: ringbuffervectoroutput.h:31
void declareParameters()
Definition: ringbuffervectoroutput.h:41
AlgorithmStatus
Definition: streamingalgorithm.h:106
Definition: algorithm.h:28
Definition: streamingalgorithm.h:140
Definition: sink.h:35
Sink< std::vector< Real > > _input
Definition: ringbuffervectoroutput.h:30
static const char * description
Definition: ringbuffervectoroutput.h:49
static const char * name
Definition: ringbuffervectoroutput.h:48