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
PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...
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.
ProcessTimestampMethod
ProcessTimestampMethod determines how the PluginInputDomainAdapter handles timestamps for the data pa...
WindowType
The set of supported window shapes.
InputDomain getInputDomain() const
Get the plugin's required input domain.
WindowType getWindowType() const
Return the current window shape.
void setWindowType(WindowType type)
Set the current window shape.
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,...
ProcessTimestampMethod getProcessTimestampMethod() const
Retrieve the method used for timestamp adjustment in plugins taking frequency-domain input.
PluginInputDomainAdapter(Plugin *plugin)
Construct a PluginInputDomainAdapter wrapping the given plugin.
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.
virtual ~PluginInputDomainAdapter()
size_t getPreferredStepSize() const
Get the preferred step size (window increment – the distance in sample frames between the start frame...
RealTime getTimestampAdjustment() const
Return the amount by which the timestamps supplied to process() are being incremented when they are p...
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::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...