| 704 | } |
| 705 | |
| 706 | int 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 | |
| 717 | std::shared_ptr<AudioSetting> AudioNode::setting(int index) |
| 718 | { |