MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / enumEelVariables

Method enumEelVariables

src/audio/base/DspHost.cpp:792–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792std::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
822bool DspHost::manipulateEelVariable(const char* name, float value)
823{

Callers 1

Calls 2

castFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected