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
00082 class PluginInputDomainAdapter : public PluginWrapper
00083 {
00084 public:
00090 PluginInputDomainAdapter(Plugin *plugin);
00091 virtual ~PluginInputDomainAdapter();
00092
00093 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
00094 void reset();
00095
00096 InputDomain getInputDomain() const;
00097
00098 size_t getPreferredStepSize() const;
00099 size_t getPreferredBlockSize() const;
00100
00101 FeatureSet process(const float *const *inputBuffers, RealTime timestamp);
00102
00137 enum ProcessTimestampMethod {
00138 ShiftTimestamp,
00139 ShiftData,
00140 NoShift
00141 };
00142
00151 void setProcessTimestampMethod(ProcessTimestampMethod);
00152
00158 ProcessTimestampMethod getProcessTimestampMethod() const;
00159
00185 RealTime getTimestampAdjustment() const;
00186
00187 protected:
00188 class Impl;
00189 Impl *m_impl;
00190 };
00191
00192 }
00193
00194 }
00195
00196 _VAMP_SDK_HOSTSPACE_END(PluginInputDomainAdapter.h)
00197
00198 #endif