Go to the documentation of this file.
38 #ifndef _VAMP_PLUGIN_BUFFERING_ADAPTER_H_
39 #define _VAMP_PLUGIN_BUFFERING_ADAPTER_H_
120 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
PluginWrapper is a simple base class for adapter plugins.
size_t getPreferredStepSize() const
Return the preferred step size for this adapter.
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
size_t getPluginPreferredStepSize() const
Return the preferred step size of the plugin wrapped by this adapter.
void setParameter(std::string, float)
Set a named parameter.
PluginBufferingAdapter is a Vamp plugin adapter that allows plugins to be used by a host supplying an...
void setPluginStepSize(size_t stepSize)
Set the step size that will be used for the underlying plugin when initialise() is called.
bool initialise(size_t channels, size_t stepSize, size_t blockSize)
Initialise the adapter (and therefore the plugin) for the given number of channels.
#define _VAMP_SDK_HOSTSPACE_BEGIN(h)
void selectProgram(std::string)
Select a program.
Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
void setPluginBlockSize(size_t blockSize)
Set the block size that will be used for the underlying plugin when initialise() is called.
std::vector< OutputDescriptor > OutputList
size_t getPluginPreferredBlockSize() const
Return the preferred block size of the plugin wrapped by this adapter.
virtual ~PluginBufferingAdapter()
void reset()
Reset the plugin after use, to prepare it for another clean run.
FeatureSet process(const float *const *inputBuffers, RealTime timestamp)
Process a single block of input data.
PluginBufferingAdapter(Plugin *plugin)
Construct a PluginBufferingAdapter wrapping the given plugin.
#define _VAMP_SDK_HOSTSPACE_END(h)
size_t getPreferredBlockSize() const
Return the preferred block size for this adapter.
void getActualStepAndBlockSizes(size_t &stepSize, size_t &blockSize)
Return the step and block sizes that were actually used when initialising the underlying plugin.
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
std::map< int, FeatureList > FeatureSet