Go to the documentation of this file.
37 #ifndef _VAMP_PLUGIN_WRAPPER_H_
38 #define _VAMP_PLUGIN_WRAPPER_H_
70 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
118 template <
typename WrapperType>
120 WrapperType *w =
dynamic_cast<WrapperType *
>(
this);
void selectProgram(std::string)
Select a program.
void reset()
Reset the plugin after use, to prepare it for another clean run.
int getPluginVersion() const
Get the version number of the plugin.
PluginWrapper is a simple base class for adapter plugins.
size_t getPreferredStepSize() const
Get the preferred step size (window increment – the distance in sample frames between the start frame...
FeatureSet process(const float *const *inputBuffers, RealTime timestamp)
Process a single block of input data.
std::string getCopyright() const
Get the copyright statement or licensing summary for the plugin.
size_t getMaxChannelCount() const
Get the maximum supported number of input channels.
std::string getName() const
Get a human-readable name or title of the plugin.
WrapperType * getWrapper()
Return a pointer to the plugin wrapper of type WrapperType surrounding this wrapper's plugin,...
std::string getCurrentProgram() const
Get the current program.
ParameterList getParameterDescriptors() const
Get the controllable parameters of this plugin.
bool initialise(size_t channels, size_t stepSize, size_t blockSize)
Initialise a plugin to prepare it for use with the given number of input channels,...
PluginWrapper(Plugin *plugin)
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
std::string getIdentifier() const
Get the computer-usable name of the plugin.
InputDomain getInputDomain() const
Get the plugin's required input domain.
ProgramList getPrograms() const
Get the program settings available in this plugin.
#define _VAMP_SDK_HOSTSPACE_BEGIN(h)
float getParameter(std::string) const
Get the value of a named parameter.
std::string getDescription() const
Get a human-readable description for the plugin, typically a line of text that may optionally be disp...
Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...
void setParameter(std::string, float)
Set a named parameter.
std::vector< std::string > ProgramList
std::vector< OutputDescriptor > OutputList
size_t getMinChannelCount() const
Get the minimum supported number of input channels.
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
void disownPlugin()
Disown the wrapped plugin, so that we no longer delete it on our own destruction.
std::vector< ParameterDescriptor > ParameterList
#define _VAMP_SDK_HOSTSPACE_END(h)
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
size_t getPreferredBlockSize() const
Get the preferred block size (window size – the number of sample frames passed in each block to the p...
unsigned int getVampApiVersion() const
Get the Vamp API compatibility level of the plugin.
std::string getMaker() const
Get the name of the author or vendor of the plugin in human-readable form.
std::map< int, FeatureList > FeatureSet