| 675 | } |
| 676 | |
| 677 | int 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 | |
| 688 | std::shared_ptr<AudioParam> AudioNode::param(int index) |
| 689 | { |