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