Don't run next(1) when we register calc function, clear outputs instead (otherwise we read into arbitary memory). Resolves #25 hopefully

nix
Owen Green 7 years ago
parent b7093de5b2
commit ab6103d984

@ -117,8 +117,8 @@ public:
for (int i = 0; i < static_cast<int>(mClient.controlChannelsOut()); ++i) { mOutputs.emplace_back(nullptr, 0, 0); }
set_calc_function<RealTime, &RealTime::next>();
mCalcFunc = make_calc_function<RealTime, &RealTime::next>();
// set_calc_function<RealTime, &RealTime::next>();
Wrapper::getInterfaceTable()->fClearUnitOutputs(this, 1);

Loading…
Cancel
Save