MCPcopy Create free account
hub / github.com/LabSound/LabSound / param_index

Method param_index

src/core/AudioNode.cpp:677–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677int AudioNode::param_index(char const * const str)
678{
679 int count = (int) _params.size();
680 for (int i = 0; i < count; ++i)
681 {
682 if (!strcmp(str, _params[i]->name().c_str()))
683 return i;
684 }
685 return -1;
686}
687
688std::shared_ptr<AudioParam> AudioNode::param(int index)
689{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected