Ok, I’m failing quite badly at this. Let me tell you where I am. So far I have gone through haydxn’s wonderful JUCE tutorial and am able to make the basic interface that I need for my application. I have a cursory knowledge of C and know very little about C++ (I’m working on this) but am generally able to cobble bits of code together to do what I want.
At the moment I have a:
class MainComponent : public Component,
With all of the gui components in that I need and have tried to make a thread class based on the provided pseudocode:
[code]class myThread : public Thread
// dll stuf
void (mdl_step)(int nbrInputArgs, double inputArgs, int nbrOutputArgs, double outputArgs);
lHandle = PlatformUtilities::loadDynamicLibrary(T("controller"));
mdl_initiate = (void(*)(void))PlatformUtilities::getProcedureEntryPoint(lHandle, T("_initiateController"));
mdl_step = (void(*)(int nbrInputArgs, double* inputArgs, int nbrOutputArgs, double* outputArgs))PlatformUtilities::getProcedureEntryPoint(lHandle, T("_getControllerOutput"));
mdl_terminate = (void(*)(void))PlatformUtilities::getProcedureEntryPoint(lHandle, T("_performCleanup"));
nInputs = 1;
nOutputs = 0;
nothing = 0.0;
while (! threadShouldExit())
local_copy_param = MainComponent::getGain(); // ?!? -erm . .
mdl_step(nInputs, &local_copy_param, nOutputs, ¬hing);
. . . but I have absolutely no idea how to strap this all together into a working application. Does my main component need to be a Thread subclass? How do I set the separate threads off and running? So sorry to be asking all these abstract questions. Once I have something simple up and running I’m sure I’ll be able to improve my knowledge and get ideas from the documentation and source code, but until I can get something running it is hard to learn by tweaking.