rt-vamp-plugin-sdk
0.3.1
Real-time Vamp plugin SDK for C++20
|
Go to the documentation of this file.
13 struct _VampPluginDescriptor;
25 float inputSampleRate,
26 std::shared_ptr<DynamicLibrary> library =
nullptr
35 std::string_view
getName()
const noexcept
override;
37 std::string_view
getMaker()
const noexcept
override;
43 std::optional<float>
getParameter(std::string_view
id)
const override;
44 bool setParameter(std::string_view
id,
float value)
override;
56 bool initialise(uint32_t stepSize, uint32_t blockSize)
override;
57 void reset()
override;
61 void checkRequirements();
64 std::shared_ptr<DynamicLibrary> library_;
66 std::vector<ParameterDescriptor> parameters_;
67 std::vector<std::string_view> programs_;
68 std::vector<Feature> featureSet_;
69 uint32_t outputCount_{0};
70 bool initialised_{
false};
71 uint32_t initialisedBlockSize_{0};
std::optional< std::string_view > CurrentProgram
Current program (if programs avaiable)
Definition: Plugin.hpp:49
std::optional< float > getParameter(std::string_view id) const override
bool selectProgram(std::string_view name) override
std::filesystem::path getLibraryPath() const noexcept
ParameterList getParameterDescriptors() const noexcept override
uint32_t getOutputCount() const override
_VampPluginDescriptor VampPluginDescriptor
Definition: PluginHostAdapter.hpp:13
FeatureSet process(InputBuffer buffer, uint64_t nsec) override
std::span< const std::string_view > ProgramList
List of programs.
Definition: Plugin.hpp:48
PluginHostAdapter(const VampPluginDescriptor &descriptor, float inputSampleRate, std::shared_ptr< DynamicLibrary > library=nullptr)
InputDomain getInputDomain() const noexcept override
std::variant< TimeDomainBuffer, FrequencyDomainBuffer > InputBuffer
Input buffer variant.
Definition: Plugin.hpp:53
Definition: Plugin.hpp:12
bool initialise(uint32_t stepSize, uint32_t blockSize) override
Definition: Plugin.hpp:14
uint32_t getPreferredBlockSize() const override
Definition: PluginHostAdapter.hpp:21
std::string_view getCopyright() const noexcept override
std::string_view getMaker() const noexcept override
bool setParameter(std::string_view id, float value) override
int getPluginVersion() const noexcept override
InputDomain
Input domain of the plugin.
Definition: Plugin.hpp:20
std::vector< OutputDescriptor > OutputList
List of output descriptors.
Definition: Plugin.hpp:50
ProgramList getPrograms() const noexcept override
uint32_t getVampApiVersion() const noexcept override
std::string_view getDescription() const noexcept override
CurrentProgram getCurrentProgram() const override
OutputList getOutputDescriptors() const override
std::string_view getIdentifier() const noexcept override
std::span< const Feature > FeatureSet
Computed features for each output.
Definition: Plugin.hpp:55
std::string_view getName() const noexcept override
uint32_t getPreferredStepSize() const override
std::span< const ParameterDescriptor > ParameterList
List of parameter descriptors.
Definition: Plugin.hpp:47
void * VampPluginHandle
Definition: PluginHostAdapter.hpp:15