Merge branch 'refactor/NRTSynths' into FluidRobustScale

nix
Pierre Alexandre Tremblay 5 years ago
commit 35b7b6969a

@ -66,6 +66,14 @@ public:
getInterfaceTable(ft);
impl::FluidSCWrapperBase<Client>::setup(ft, name);
ft->fDefineUnitCmd(name, "version", doVersion);
std::string commandName("/");
commandName += getName();
commandName += "/version";
ft->fDefinePlugInCmd(commandName.c_str(),
[](World*, void*, sc_msg_iter*, void*){ doVersion(nullptr,nullptr); },
nullptr);
}
static auto& setParams(Unit* x, ParamSetType& p,

@ -178,7 +178,7 @@ struct FluidSCMessaging{
world);
return true;
},
[](World* world, void* data) // NRT Thread: Send reply
[](World*, void* data) // NRT Thread: Send reply
{
MessageData* m = static_cast<MessageData*>(data);
if(m->result.status() != Result::Status::kError)

@ -423,6 +423,7 @@ namespace impl {
if(result.ok())
{
ptr->mDone = false;
mResult = client.process();
Wrapper::printResult(world,mResult);
@ -760,10 +761,9 @@ namespace impl {
mPreviousTrigger = mTrigger;
mTrigger = 0;
auto& client = ptr->mClient;
if(trigger)
{
mDone = 0;
mControlsIterator.reset(1 + mInBuf); //add one for ID
auto& params = ptr->mParams;
Wrapper::setParams(this,params,mControlsIterator,true,false);

Loading…
Cancel
Save