| 790 | } |
| 791 | |
| 792 | std::vector<EelVariable> DspHost::enumEelVariables() |
| 793 | { |
| 794 | std::vector<EelVariable> vars; |
| 795 | |
| 796 | compileContext *ctx = (compileContext*)cast(this->_dsp)->eel.vm; |
| 797 | for (int i = 0; i < ctx->varTable_numBlocks; i++) |
| 798 | { |
| 799 | for (int j = 0; j < NSEEL_VARS_PER_BLOCK; j++) |
| 800 | { |
| 801 | EelVariable var; |
| 802 | // char *valid = (char*)GetStringForIndex(ctx->region_context, ctx->varTable_Values[i][j], 0); |
| 803 | // TODO fix string handling (broke after last libjamesdsp update) |
| 804 | var.isString = false; // = valid; |
| 805 | |
| 806 | if (ctx->varTable_Names[i][j]) |
| 807 | { |
| 808 | var.name = ctx->varTable_Names[i][j]; |
| 809 | /*if(var.isString) |
| 810 | var.value = valid; |
| 811 | else*/ |
| 812 | var.value = ctx->varTable_Values[i][j]; |
| 813 | |
| 814 | vars.push_back(var); |
| 815 | } |
| 816 | } |
| 817 | } |
| 818 | |
| 819 | return vars; |
| 820 | } |
| 821 | |
| 822 | bool DspHost::manipulateEelVariable(const char* name, float value) |
| 823 | { |
no test coverage detected