rt-vamp-plugin-sdk  0.3.1
Real-time Vamp plugin SDK for C++20
Public Member Functions | List of all members
rtvamp::hostsdk::PluginHostAdapter Class Reference

#include <rtvamp/hostsdk/PluginHostAdapter.hpp>

Inheritance diagram for rtvamp::hostsdk::PluginHostAdapter:
[legend]

Public Member Functions

 PluginHostAdapter (const VampPluginDescriptor &descriptor, float inputSampleRate, std::shared_ptr< DynamicLibrary > library=nullptr)
 
 ~PluginHostAdapter ()
 
std::filesystem::path getLibraryPath () const noexcept
 
uint32_t getVampApiVersion () const noexcept override
 
std::string_view getIdentifier () const noexcept override
 
std::string_view getName () const noexcept override
 
std::string_view getDescription () const noexcept override
 
std::string_view getMaker () const noexcept override
 
std::string_view getCopyright () const noexcept override
 
int getPluginVersion () const noexcept override
 
InputDomain getInputDomain () const noexcept override
 
ParameterList getParameterDescriptors () const noexcept override
 
std::optional< float > getParameter (std::string_view id) const override
 
bool setParameter (std::string_view id, float value) override
 
ProgramList getPrograms () const noexcept override
 
CurrentProgram getCurrentProgram () const override
 
bool selectProgram (std::string_view name) override
 
uint32_t getPreferredStepSize () const override
 
uint32_t getPreferredBlockSize () const override
 
uint32_t getOutputCount () const override
 
OutputList getOutputDescriptors () const override
 
bool initialise (uint32_t stepSize, uint32_t blockSize) override
 
void reset () override
 
FeatureSet process (InputBuffer buffer, uint64_t nsec) override
 
- Public Member Functions inherited from rtvamp::hostsdk::Plugin
 Plugin (float inputSampleRate)
 
virtual ~Plugin ()=default
 
float getInputSampleRate () const noexcept
 

Additional Inherited Members

- Public Types inherited from rtvamp::hostsdk::Plugin
enum  InputDomain { InputDomain::Time, InputDomain::Frequency }
 Input domain of the plugin. More...
 
using ParameterList = std::span< const ParameterDescriptor >
 List of parameter descriptors. More...
 
using ProgramList = std::span< const std::string_view >
 List of programs. More...
 
using CurrentProgram = std::optional< std::string_view >
 Current program (if programs avaiable) More...
 
using OutputList = std::vector< OutputDescriptor >
 List of output descriptors. More...
 
using TimeDomainBuffer = std::span< const float >
 Time domain buffer. More...
 
using FrequencyDomainBuffer = std::span< const std::complex< float > >
 Frequency domain buffer (FFT) More...
 
using InputBuffer = std::variant< TimeDomainBuffer, FrequencyDomainBuffer >
 Input buffer variant. More...
 
using Feature = std::vector< float >
 Feature with one or more values (defined by OutputDescriptor::binCount) More...
 
using FeatureSet = std::span< const Feature >
 Computed features for each output. More...
 

Constructor & Destructor Documentation

◆ PluginHostAdapter()

rtvamp::hostsdk::PluginHostAdapter::PluginHostAdapter ( const VampPluginDescriptor descriptor,
float  inputSampleRate,
std::shared_ptr< DynamicLibrary >  library = nullptr 
)

◆ ~PluginHostAdapter()

rtvamp::hostsdk::PluginHostAdapter::~PluginHostAdapter ( )

Member Function Documentation

◆ getCopyright()

std::string_view rtvamp::hostsdk::PluginHostAdapter::getCopyright ( ) const
overridevirtualnoexcept

◆ getCurrentProgram()

CurrentProgram rtvamp::hostsdk::PluginHostAdapter::getCurrentProgram ( ) const
overridevirtual

◆ getDescription()

std::string_view rtvamp::hostsdk::PluginHostAdapter::getDescription ( ) const
overridevirtualnoexcept

◆ getIdentifier()

std::string_view rtvamp::hostsdk::PluginHostAdapter::getIdentifier ( ) const
overridevirtualnoexcept

◆ getInputDomain()

InputDomain rtvamp::hostsdk::PluginHostAdapter::getInputDomain ( ) const
overridevirtualnoexcept

◆ getLibraryPath()

std::filesystem::path rtvamp::hostsdk::PluginHostAdapter::getLibraryPath ( ) const
virtualnoexcept

◆ getMaker()

std::string_view rtvamp::hostsdk::PluginHostAdapter::getMaker ( ) const
overridevirtualnoexcept

◆ getName()

std::string_view rtvamp::hostsdk::PluginHostAdapter::getName ( ) const
overridevirtualnoexcept

◆ getOutputCount()

uint32_t rtvamp::hostsdk::PluginHostAdapter::getOutputCount ( ) const
overridevirtual

◆ getOutputDescriptors()

OutputList rtvamp::hostsdk::PluginHostAdapter::getOutputDescriptors ( ) const
overridevirtual

◆ getParameter()

std::optional<float> rtvamp::hostsdk::PluginHostAdapter::getParameter ( std::string_view  id) const
overridevirtual

◆ getParameterDescriptors()

ParameterList rtvamp::hostsdk::PluginHostAdapter::getParameterDescriptors ( ) const
overridevirtualnoexcept

◆ getPluginVersion()

int rtvamp::hostsdk::PluginHostAdapter::getPluginVersion ( ) const
overridevirtualnoexcept

◆ getPreferredBlockSize()

uint32_t rtvamp::hostsdk::PluginHostAdapter::getPreferredBlockSize ( ) const
overridevirtual

◆ getPreferredStepSize()

uint32_t rtvamp::hostsdk::PluginHostAdapter::getPreferredStepSize ( ) const
overridevirtual

◆ getPrograms()

ProgramList rtvamp::hostsdk::PluginHostAdapter::getPrograms ( ) const
overridevirtualnoexcept

◆ getVampApiVersion()

uint32_t rtvamp::hostsdk::PluginHostAdapter::getVampApiVersion ( ) const
overridevirtualnoexcept

◆ initialise()

bool rtvamp::hostsdk::PluginHostAdapter::initialise ( uint32_t  stepSize,
uint32_t  blockSize 
)
overridevirtual

◆ process()

FeatureSet rtvamp::hostsdk::PluginHostAdapter::process ( InputBuffer  buffer,
uint64_t  nsec 
)
overridevirtual

◆ reset()

void rtvamp::hostsdk::PluginHostAdapter::reset ( )
overridevirtual

◆ selectProgram()

bool rtvamp::hostsdk::PluginHostAdapter::selectProgram ( std::string_view  name)
overridevirtual

◆ setParameter()

bool rtvamp::hostsdk::PluginHostAdapter::setParameter ( std::string_view  id,
float  value 
)
overridevirtual

The documentation for this class was generated from the following file: