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

virtual size_t Vamp::Plugin::getPreferredStepSize (  )  const [inline, virtual]

Get the preferred step size (window increment -- the distance in sample frames between the start frames of consecutive blocks passed to the process() function) for the plugin. This should be called before initialise().

A plugin may return 0 if it has no particular interest in the step size. In this case, the host should make the step size equal to the block size if the plugin is accepting input in the time domain. If the plugin is accepting input in the frequency domain, the host may use any step size. The final step size will be set in the initialise() call.

Reimplemented in PercussionOnsetDetector, Vamp::HostExt::PluginBufferingAdapter, Vamp::HostExt::PluginInputDomainAdapter, Vamp::HostExt::PluginWrapper, and Vamp::PluginHostAdapter.

Definition at line 186 of file Plugin.h.

Referenced by Vamp::HostExt::PluginWrapper::getPreferredStepSize().

{ return 0; }

Generated by  Doxygen 1.6.0   Back to index