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) |
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 |
long | m_frame |
bool | m_unrun |
OutputList | m_outputs |
std::map< int, bool > | m_rewriteOutputTimes |
Classes | |
class | RingBuffer |
Vamp::HostExt::PluginBufferingAdapter::Impl::Impl | ( | Plugin * | plugin, | |
float | inputSampleRate | |||
) |
Vamp::HostExt::PluginBufferingAdapter::Impl::~Impl | ( | ) |
Definition at line 296 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 314 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 367 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::OutputDescriptor::FixedSampleRate, Vamp::Plugin::getOutputDescriptors(), m_inputSampleRate, m_outputs, m_plugin, m_rewriteOutputTimes, m_stepSize, Vamp::Plugin::OutputDescriptor::OneSamplePerStep, and Vamp::Plugin::OutputDescriptor::VariableSampleRate.
Referenced by Vamp::HostExt::PluginBufferingAdapter::getOutputDescriptors(), and Impl().
void Vamp::HostExt::PluginBufferingAdapter::Impl::reset | ( | ) |
Definition at line 406 of file PluginBufferingAdapter.cpp.
References m_frame, m_queue, and m_unrun.
Referenced by Vamp::HostExt::PluginBufferingAdapter::reset().
PluginBufferingAdapter::FeatureSet Vamp::HostExt::PluginBufferingAdapter::Impl::process | ( | const float *const * | inputBuffers, | |
RealTime | timestamp | |||
) |
Definition at line 417 of file PluginBufferingAdapter.cpp.
References m_blockSize, m_channels, m_frame, m_inputBlockSize, m_inputSampleRate, m_queue, m_stepSize, m_unrun, processBlock(), and Vamp::RealTime::realTime2Frame().
Referenced by Vamp::HostExt::PluginBufferingAdapter::process().
PluginBufferingAdapter::FeatureSet Vamp::HostExt::PluginBufferingAdapter::Impl::getRemainingFeatures | ( | ) |
Definition at line 452 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::getRemainingFeatures(), m_blockSize, m_channels, m_plugin, m_queue, and processBlock().
Referenced by Vamp::HostExt::PluginBufferingAdapter::getRemainingFeatures().
void Vamp::HostExt::PluginBufferingAdapter::Impl::processBlock | ( | FeatureSet & | allFeatureSets | ) | [protected] |
Definition at line 485 of file PluginBufferingAdapter.cpp.
References Vamp::Plugin::OutputDescriptor::FixedSampleRate, Vamp::RealTime::frame2RealTime(), m_blockSize, m_buffers, m_channels, m_frame, m_inputSampleRate, m_outputs, m_plugin, m_queue, m_rewriteOutputTimes, m_stepSize, Vamp::Plugin::OutputDescriptor::OneSamplePerStep, Vamp::Plugin::process(), 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 229 of file PluginBufferingAdapter.cpp.
Referenced by getOutputDescriptors(), process(), and processBlock().
long Vamp::HostExt::PluginBufferingAdapter::Impl::m_frame [protected] |
Definition at line 230 of file PluginBufferingAdapter.cpp.
Referenced by process(), processBlock(), and reset().
bool Vamp::HostExt::PluginBufferingAdapter::Impl::m_unrun [protected] |
OutputList Vamp::HostExt::PluginBufferingAdapter::Impl::m_outputs [mutable, protected] |
Definition at line 232 of file PluginBufferingAdapter.cpp.
Referenced by getOutputDescriptors(), and processBlock().
std::map<int, bool> Vamp::HostExt::PluginBufferingAdapter::Impl::m_rewriteOutputTimes [mutable, protected] |
Definition at line 233 of file PluginBufferingAdapter.cpp.
Referenced by getOutputDescriptors(), and processBlock().