PluginInputDomainAdapter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef _VAMP_PLUGIN_INPUT_DOMAIN_ADAPTER_H_
00038 #define _VAMP_PLUGIN_INPUT_DOMAIN_ADAPTER_H_
00039
00040 #include "hostguard.h"
00041 #include "PluginWrapper.h"
00042
00043 _VAMP_SDK_HOSTSPACE_BEGIN(PluginInputDomainAdapter.h)
00044
00045 namespace Vamp {
00046
00047 namespace HostExt {
00048
00087 class PluginInputDomainAdapter : public PluginWrapper
00088 {
00089 public:
00095 PluginInputDomainAdapter(Plugin *plugin);
00096 virtual ~PluginInputDomainAdapter();
00097
00098 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
00099 void reset();
00100
00101 InputDomain getInputDomain() const;
00102
00103 size_t getPreferredStepSize() const;
00104 size_t getPreferredBlockSize() const;
00105
00106 FeatureSet process(const float *const *inputBuffers, RealTime timestamp);
00107
00142 enum ProcessTimestampMethod {
00143 ShiftTimestamp,
00144 ShiftData,
00145 NoShift
00146 };
00147
00156 void setProcessTimestampMethod(ProcessTimestampMethod);
00157
00163 ProcessTimestampMethod getProcessTimestampMethod() const;
00164
00190 RealTime getTimestampAdjustment() const;
00191
00195 enum WindowType {
00196
00197 RectangularWindow = 0,
00198
00199 BartlettWindow = 1,
00200 TriangularWindow = 1,
00201
00202 HammingWindow = 2,
00203
00204 HanningWindow = 3,
00205 HannWindow = 3,
00206
00207 BlackmanWindow = 4,
00208
00209 NuttallWindow = 7,
00210
00211 BlackmanHarrisWindow = 8
00212 };
00213
00217 WindowType getWindowType() const;
00218
00222 void setWindowType(WindowType type);
00223
00224
00225 protected:
00226 class Impl;
00227 Impl *m_impl;
00228 };
00229
00230 }
00231
00232 }
00233
00234 _VAMP_SDK_HOSTSPACE_END(PluginInputDomainAdapter.h)
00235
00236 #endif