Go to the documentation of this file.
37 #ifndef _VAMP_PLUGIN_INPUT_DOMAIN_ADAPTER_H_
38 #define _VAMP_PLUGIN_INPUT_DOMAIN_ADAPTER_H_
99 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
198 RectangularWindow = 0,
201 TriangularWindow = 1,
212 BlackmanHarrisWindow = 8
PluginWrapper is a simple base class for adapter plugins.
RealTime getTimestampAdjustment() const
Return the amount by which the timestamps supplied to process() are being incremented when they are p...
PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...
WindowType
The set of supported window shapes.
ProcessTimestampMethod getProcessTimestampMethod() const
Retrieve the method used for timestamp adjustment in plugins taking frequency-domain input.
void setWindowType(WindowType type)
Set the current window shape.
virtual ~PluginInputDomainAdapter()
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,...
void reset()
Reset the plugin after use, to prepare it for another clean run.
#define _VAMP_SDK_HOSTSPACE_BEGIN(h)
PluginInputDomainAdapter(Plugin *plugin)
Construct a PluginInputDomainAdapter wrapping the given plugin.
Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...
WindowType getWindowType() const
Return the current window shape.
FeatureSet process(const float *const *inputBuffers, RealTime timestamp)
Process a single block of input data.
InputDomain getInputDomain() const
Get the plugin's required input domain.
size_t getPreferredBlockSize() const
Get the preferred block size (window size – the number of sample frames passed in each block to the p...
void setProcessTimestampMethod(ProcessTimestampMethod)
Set the method used for timestamp adjustment in plugins taking frequency-domain input.
#define _VAMP_SDK_HOSTSPACE_END(h)
ProcessTimestampMethod
ProcessTimestampMethod determines how the PluginInputDomainAdapter handles timestamps for the data pa...
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
size_t getPreferredStepSize() const
Get the preferred step size (window increment – the distance in sample frames between the start frame...
std::map< int, FeatureList > FeatureSet