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

void Vamp::PluginHostAdapter::selectProgram ( std::string   )  [virtual]

Select a program. (If the given program name is not one of the available programs, do nothing.)

Reimplemented from Vamp::PluginBase.

Definition at line 261 of file PluginHostAdapter.cpp.

{
    if (!m_handle) return;

    for (unsigned int i = 0; i < m_descriptor->programCount; ++i) {
        if (program == m_descriptor->programs[i]) {
            m_descriptor->selectProgram(m_handle, i);
            return;
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index