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

Method setting_index

src/core/AudioNode.cpp:706–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706int AudioNode::setting_index(char const * const str)
707{
708 int count = (int) _settings.size();
709 for (int i = 0; i < count; ++i)
710 {
711 if (!strcmp(str, _settings[i]->name().c_str()))
712 return i;
713 }
714 return -1;
715}
716
717std::shared_ptr<AudioSetting> AudioNode::setting(int index)
718{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected