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

float Vamp::PluginHostAdapter::getParameter ( std::string   )  const [virtual]

Get the value of a named parameter. The argument is the identifier field from that parameter's descriptor.

Reimplemented from Vamp::PluginBase.

Definition at line 212 of file PluginHostAdapter.cpp.

    if (!m_handle) return 0.0;

    for (unsigned int i = 0; i < m_descriptor->parameterCount; ++i) {
        if (param == m_descriptor->parameters[i]->identifier) {
            return m_descriptor->getParameter(m_handle, i);

    return 0.0;

Generated by  Doxygen 1.6.0   Back to index