I'm trying to encapsulate an already working project into a class definition so I can use it more flexibly. The project uses
Bela_createAuxiliaryTask to set up a separate processing threads, and works fine when everything is included within
My problem is that when I translate this project into class definition files, I'm getting the error
reference to non-static member function must be called column: x, line: y, with coordinates x,y pointing to the reference to the callback function inside
I'm still fairly fresh to c++ and somewhat unsure as to whether the Bela AuxiliaryTask threading can be used inside a class successfully. Is this possible?
I've also not had much experience with passing functions as arguments other than using the Bela AuxiliaryTask in other projects, and I suspect that my issue might be to do with doing this within the class definition...
relevant snippets from my class def files:
void source_analysis_routine(void *);
sourceAnalysis_ = Bela_createAuxiliaryTask(source_analysis_routine, 70, "bela-source-analysis");
void Class::source_analysis_routine(void *)
// placeholder function (I don't think this is where my problem is, although I am calling another function from here)
aVariable_ = true;
anotherFunction(true, false, cachedValue_);