sendDataToGlobalCable issue No matching member function
-
Trying to send back to the second cable, I get a
No matching member function...
But I succeed receiving from the first cableenum class GlobalCables { myCable_gc = 0 }; using cable_manager_t = routing::global_cable_cpp_manager<SN_GLOBAL_CABLE(910379922)>; class MyClass: public cable_manager_t { private: void sendToCable() { this->sendDataToGlobalCable<GlobalCables::myCable_gc>(data); // No matching member function for call to 'sendDataToGlobalCable' this->setGlobalCableValue<GlobalCables::myCable_gc>(0.4); // working } std::array<float, SIZE> data; } -
@Christoph-Hart This is still unsolved, I really need it to send data back to ui script
I don't understand because both
sendDataToGlobalCableandsetGlobalCableValueare existing in theglobal_cable_cpp_managerBy the way, is it allowed to send a juce::path as data so it lightens the UI script instead of building the path there?
-
In the end it was just a parameter type issue, this function accepting
vartype only (unlike when sending data from the UI)
So whatever you want to pass in, you first need to perform a type conversion. -
U ustk marked this topic as a question
-
U ustk has marked this topic as solved