part 2 of 3 of the 2.8 -> 3.0 merge
[ardour.git] / libs / rubberband / src / vamp / RubberBandVampPlugin.h
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2
3 /*
4     Rubber Band
5     An audio time-stretching and pitch-shifting library.
6     Copyright 2007-2008 Chris Cannam.
7     
8     This program is free software; you can redistribute it and/or
9     modify it under the terms of the GNU General Public License as
10     published by the Free Software Foundation; either version 2 of the
11     License, or (at your option) any later version.  See the file
12     COPYING included with this distribution for more information.
13 */
14
15 #ifndef _RUBBERBAND_VAMP_PLUGIN_H_
16 #define _RUBBERBAND_VAMP_PLUGIN_H_
17
18 #include "vamp-sdk/Plugin.h"
19
20 #include "RubberBandStretcher.h"
21
22 class RubberBandVampPlugin : public Vamp::Plugin
23 {
24 public:
25     RubberBandVampPlugin(float inputSampleRate);
26     virtual ~RubberBandVampPlugin();
27
28     bool initialise(size_t channels, size_t stepSize, size_t blockSize);
29     void reset();
30
31     InputDomain getInputDomain() const { return TimeDomain; }
32
33     std::string getIdentifier() const;
34     std::string getName() const;
35     std::string getDescription() const;
36     std::string getMaker() const;
37     int getPluginVersion() const;
38     std::string getCopyright() const;
39
40     ParameterList getParameterDescriptors() const;
41     float getParameter(std::string id) const;
42     void setParameter(std::string id, float value);
43
44     OutputList getOutputDescriptors() const;
45
46     FeatureSet process(const float *const *inputBuffers,
47                        Vamp::RealTime timestamp);
48
49     FeatureSet getRemainingFeatures();
50
51 protected:
52     class Impl;
53     Impl *m_d;
54 };
55
56 #endif