Logo Search packages:      
Sourcecode: vamp-plugin-sdk version File versions  Download package

size_t Vamp::PluginHostAdapter::getPreferredBlockSize (  )  const [virtual]

Get the preferred block size (window size -- the number of sample frames passed in each block to the process() function). This should be called before initialise().

A plugin that can handle any block size may return 0. The final block size will be set in the initialise() call.

Reimplemented from Vamp::Plugin.

Definition at line 281 of file PluginHostAdapter.cpp.

    if (!m_handle) return 0;
    return m_descriptor->getPreferredBlockSize(m_handle);

Generated by  Doxygen 1.6.0   Back to index