Definition at line 50 of file PluginBufferingAdapter.cpp.
Public Member Functions | |
Impl (Plugin *plugin, float inputSampleRate) | |
~Impl () | |
bool | initialise (size_t channels, size_t stepSize, size_t blockSize) |
OutputList | getOutputDescriptors () const |
void | reset () |
FeatureSet | process (const float *const *inputBuffers, RealTime timestamp) |
FeatureSet | getRemainingFeatures () |
Protected Member Functions | |
void | processBlock (FeatureSet &allFeatureSets, RealTime timestamp) |
Protected Attributes | |
Plugin * | m_plugin |
size_t | m_inputStepSize |
size_t | m_inputBlockSize |
size_t | m_stepSize |
size_t | m_blockSize |
size_t | m_channels |
vector< RingBuffer * > | m_queue |
float ** | m_buffers |
float | m_inputSampleRate |
RealTime | m_timestamp |
bool | m_unrun |
OutputList | m_outputs |
Classes | |
class | RingBuffer |
Vamp::HostExt::PluginBufferingAdapter::Impl::Impl | ( | Plugin * | plugin, | |
float | inputSampleRate | |||
) |
Definition at line 279 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::getOutputDescriptors(), and m_outputs.
Vamp::HostExt::PluginBufferingAdapter::Impl::~Impl | ( | ) |
Definition at line 295 of file PluginBufferingAdapter.cpp.
References m_buffers, m_channels, and m_queue.
bool Vamp::HostExt::PluginBufferingAdapter::Impl::initialise | ( | size_t | channels, | |
size_t | stepSize, | |||
size_t | blockSize | |||
) |
Definition at line 313 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::FrequencyDomain, Vamp::Plugin::getInputDomain(), Vamp::Plugin::getPreferredBlockSize(), Vamp::Plugin::getPreferredStepSize(), Vamp::Plugin::initialise(), m_blockSize, m_buffers, m_channels, m_inputBlockSize, m_inputStepSize, m_plugin, m_queue, and m_stepSize.
Referenced by Vamp::HostExt::PluginBufferingAdapter::initialise().
PluginBufferingAdapter::OutputList Vamp::HostExt::PluginBufferingAdapter::Impl::getOutputDescriptors | ( | ) | const |
Definition at line 366 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::getOutputDescriptors(), m_plugin, m_stepSize, Vamp::Plugin::OutputDescriptor::OneSamplePerStep, and Vamp::Plugin::OutputDescriptor::VariableSampleRate.
Referenced by Vamp::HostExt::PluginBufferingAdapter::getOutputDescriptors().
void Vamp::HostExt::PluginBufferingAdapter::Impl::reset | ( | ) |
Definition at line 379 of file PluginBufferingAdapter.cpp.
References m_queue, m_timestamp, m_unrun, and Vamp::RealTime::zeroTime.
Referenced by Vamp::HostExt::PluginBufferingAdapter::reset().
PluginBufferingAdapter::FeatureSet Vamp::HostExt::PluginBufferingAdapter::Impl::process | ( | const float *const * | inputBuffers, | |
RealTime | timestamp | |||
) |
Definition at line 390 of file PluginBufferingAdapter.cpp.
References m_blockSize, m_channels, m_inputBlockSize, m_queue, m_stepSize, m_timestamp, m_unrun, and processBlock().
Referenced by Vamp::HostExt::PluginBufferingAdapter::process().
PluginBufferingAdapter::FeatureSet Vamp::HostExt::PluginBufferingAdapter::Impl::getRemainingFeatures | ( | ) |
Definition at line 424 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::getRemainingFeatures(), m_blockSize, m_channels, m_plugin, m_queue, m_timestamp, and processBlock().
Referenced by Vamp::HostExt::PluginBufferingAdapter::getRemainingFeatures().
void Vamp::HostExt::PluginBufferingAdapter::Impl::processBlock | ( | FeatureSet & | allFeatureSets, | |
RealTime | timestamp | |||
) | [protected] |
Definition at line 457 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::OutputDescriptor::FixedSampleRate, Vamp::RealTime::frame2RealTime(), m_blockSize, m_buffers, m_channels, m_inputSampleRate, m_outputs, m_plugin, m_queue, m_stepSize, m_timestamp, Vamp::Plugin::OutputDescriptor::OneSamplePerStep, Vamp::Plugin::process(), Vamp::RealTime::realTime2Frame(), and Vamp::Plugin::OutputDescriptor::VariableSampleRate.
Referenced by getRemainingFeatures(), and process().
Definition at line 221 of file PluginBufferingAdapter.cpp.
Referenced by getOutputDescriptors(), getRemainingFeatures(), initialise(), and processBlock().
size_t Vamp::HostExt::PluginBufferingAdapter::Impl::m_inputStepSize [protected] |
size_t Vamp::HostExt::PluginBufferingAdapter::Impl::m_inputBlockSize [protected] |
Definition at line 223 of file PluginBufferingAdapter.cpp.
Referenced by initialise(), and process().
size_t Vamp::HostExt::PluginBufferingAdapter::Impl::m_stepSize [protected] |
Definition at line 224 of file PluginBufferingAdapter.cpp.
Referenced by getOutputDescriptors(), initialise(), process(), and processBlock().
size_t Vamp::HostExt::PluginBufferingAdapter::Impl::m_blockSize [protected] |
Definition at line 225 of file PluginBufferingAdapter.cpp.
Referenced by getRemainingFeatures(), initialise(), process(), and processBlock().
size_t Vamp::HostExt::PluginBufferingAdapter::Impl::m_channels [protected] |
Definition at line 226 of file PluginBufferingAdapter.cpp.
Referenced by getRemainingFeatures(), initialise(), process(), processBlock(), and ~Impl().
vector<RingBuffer *> Vamp::HostExt::PluginBufferingAdapter::Impl::m_queue [protected] |
Definition at line 227 of file PluginBufferingAdapter.cpp.
Referenced by getRemainingFeatures(), initialise(), process(), processBlock(), reset(), and ~Impl().
float** Vamp::HostExt::PluginBufferingAdapter::Impl::m_buffers [protected] |
Definition at line 228 of file PluginBufferingAdapter.cpp.
Referenced by initialise(), processBlock(), and ~Impl().
float Vamp::HostExt::PluginBufferingAdapter::Impl::m_inputSampleRate [protected] |
Definition at line 230 of file PluginBufferingAdapter.cpp.
Referenced by getRemainingFeatures(), process(), processBlock(), and reset().
bool Vamp::HostExt::PluginBufferingAdapter::Impl::m_unrun [protected] |
Definition at line 232 of file PluginBufferingAdapter.cpp.
Referenced by Impl(), and processBlock().